Forum Discussion
Update:
Authentication worked using apiKey as well.
Though, I am stuck in a weird issue. I am preparing a GET request and getting an error as below. Based on the error, request header should be declared.
So, I want to declare request header as application/json but I am not able to as it is not supported in openapi: 3.0.0
415 Undocumented | Error: response status is 415 Response bodyDownload { "message": "Request validation can only interpret application/json bodies. You must provide \"Content-Type: application/json\" in the request headers." } |
It was supported in openapi: 2.0.0 as mentioned in the link below.
https://swagger.io/docs/specification/2-0/mime-types/
and in openapi: 3.0.0 there is nothing mentioned how to handle this for a GET request as all examples state information for responses.
https://swagger.io/docs/specification/media-types/
Did anyone face issue like this?
pathaniaamn
Look at this post. It may help you.
There is no answer there but, when looking at the structure #2, you should understand the way it should be sent.
Related Content
- 4 years agoCapricornus
- 2 years agolalit_singh
Recent Discussions
- 7 days agokj20nt
- 15 days agoprogrammer_j
- 20 days agotobyclements