Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to handle Multipart/form requests? #126

Open
MikeBenton2 opened this issue Oct 11, 2024 · 0 comments
Open

Question: How to handle Multipart/form requests? #126

MikeBenton2 opened this issue Oct 11, 2024 · 0 comments
Labels
question Further information is requested

Comments

@MikeBenton2
Copy link

❔ Question

So I have an API endpoint that accepts a Multipart/form-data as a Content-Type. How should I handle this in the tests? I don't see anything about the documentation. The only way I got it working was to specify "["Content-Type": "multipart/form-data"]" as the header in the mock service, but I couldn't figure out the body because at least for ours, it contains a JSON object and form-data. So right now, I can't verify the body :/

@MikeBenton2 MikeBenton2 added the question Further information is requested label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant