You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using grape-swagger and swagger-ui for documentation of REST APIs in my RAILS application. I would like to document the response examples for the APIs. I couldn't find a way to use Rabl along with Swagger to document my JSON responses.
The text was updated successfully, but these errors were encountered:
We use a custom rake tasks that builds response examples using rabl + factory bot
We use factory girl to seed data based on a custom "for_docs" trait. Then loop through our rabl files and generate a response json from rabl for each of our views and save them as files. Those files are referenced by name in our api definitions swagger yaml file. Finally we combine all separate/referenced files into one and use that as our swagger file.
Here are some code snippets. We do this over a several different files so its not an easy copy paste of the full code.
I am using grape-swagger and swagger-ui for documentation of REST APIs in my RAILS application. I would like to document the response examples for the APIs. I couldn't find a way to use Rabl along with Swagger to document my JSON responses.
The text was updated successfully, but these errors were encountered: