Forum Discussion

priyanshu1's avatar
Occasional Visitor
4 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
summary: abcd
- application/json
- 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