grape-swagger
grape-swagger copied to clipboard
how to add headers params
Content-type:application/json => Content-type:application/x-www-form-urlencoded
@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.