Request body in GET command
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2020
10:30 AM
05-18-2020
10:30 AM
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
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
Labels:
- Labels:
-
Swagger Editor
0 REPLIES 0
