richhollis / swagger-docs

Generates swagger-ui json files for Rails APIs with a simple DSL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need a good example for a json body with multiple parameters

opened this issue · comments

Looking for a good example, and maybe this belongs in the specs(?), of how to mark up a post/put route that takes a json body and how to denote the parameters within that body in the markup. Is this even possible?

Thanks in advance!

Same question. Does the gem support body parameter ? If it does, can someone tell how to construct the doc for a request with following JSON object in body ?
{"operation":"read", "org_id":"RTR"}

commented

LOL, it had been two years and now still no answer