richhollis / swagger-docs

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

Support for paramType: body? #56

Closed agoodno closed 10 years ago

agoodno commented 10 years ago

The petstore example for create shows specifying a JSON body as the content submitted to the endpoint. Is there a way to specify that in swagger:docs?

richhollis commented 10 years ago

You should be able to submit a body like this:

param :body, :body, :Tag, :required, "My tag object"