grape-swagger icon indicating copy to clipboard operation
grape-swagger copied to clipboard

how to add headers params

Open ly123525 opened this issue 7 years ago • 1 comments

Content-type:application/json => Content-type:application/x-www-form-urlencoded

ly123525 avatar Mar 05 '18 15:03 ly123525

@ly123525 you can add options consumes: ["application/x-www-form-urlencoded"] in to desc method. Read this for more information https://github.com/ruby-grape/grape-swagger#using-an-options-hash- Please take note that with current grape version, consumes as a hash option is not working and will be deprecated.

sondnm avatar Jul 12 '18 07:07 sondnm