richhollis / swagger-docs

Generates swagger-ui json files for Rails APIs with a simple DSL.
MIT License
749 stars 150 forks source link

Need a good example for a json body with multiple parameters #165

Open ghost opened 7 years ago

ghost commented 7 years ago

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!

sahaynishant342 commented 6 years ago

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"}

FikriRNurhidayat commented 5 years ago

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