Forum Discussion

priyanshu1's avatar
priyanshu1
Occasional Visitor
5 years ago

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
No RepliesBe the first to reply