Description
I'm hoping this isn't an extremely stupid question...
I loaded up grape-swagger, and set some basic options, and for the most part it is working great! However, I've been stuck trying to figure out how to generate the documentation in a way to tell swagger-ui that my api expects post-data of a json.
Using the same swagger-ui code, I can point to the petstore example api, and see that it looks like it is acting the way I would like, with the param type as body, and they content type as application/json. Inspecting the example petstore endpoint swagger at http://petstore.swagger.wordnik.com:80/api/pet, I suspect that the "consumes: "application/json", and parameter paramType: "body", are the bits that I am not figuring out how to render, and would make the swagger-ui work this way.
Is there any chance someone could give an example of how to do this?
Thanks!