Nidhin
2 years agoNew Contributor
Not sending req to server when using multipart/form-data: in swaagger UI
I am using swagger ui to make documentation of API. I am trying to post some data to the server and the server is not getting any requests from swagger. I tried to remove the content part and its wor...
- 2 years ago
Hi Nidhin ,
It's a little hard to read your definition as the format came out a bit wonky.
But it does look like you're adding `requestyBody` underneath `parameters`?
OpenAPI 3.0+ has moved request bodies into their own field, and not in parameters (like it was in Swagger 2.0).
Take a look at https://swagger.io/docs/specification/describing-request-body/ for further docs around that.