Forum Discussion
HKosova
Alumni
5 years agoHi vitorlima1602,
Can you please clarify why you need the Content-Type header in a GET request? Content-Type is used in requests that have a request body, such as POST, PUT, or PATCH. GET requests are not supposed to have a body, this is explicitly disallowed in OpenAPI 3.0.
vitorlima1602
5 years agoNew Contributor
Hi.
It is that in the company where I work, they adopted a standard of trafficking data through the header, including several GET methods are working like this, people test via postman and it works normally.
Now they want to use the swagger accessing the routes in the same way and I don't know how to do that.