How to set reference of the request body content as dynamic JSON?
I want to pass dynamic JSON to request body content. When I search on google, I see that this operation made by a DTO. Is it possible to do this without defining any DTO? I share below the example with DTO. https://swagger.io/docs/specification/describing-request-body/Request body in GET command
I'm not able to send a parameter in request body of GET. It pops "no consumer registered for application/json" error. I have added following piece of code in swagger 2.0 get: summary: abcd produces: - application/json parameters: - in: header name: Id type: string It throws the error whenever I send request body as { "Id": "abc" } It works fine when nothing is sent in the request body