Skip to content

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

@MikeBenton2

Description

@MikeBenton2

❔ 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 :/

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions