Quantcast
Viewing all articles
Browse latest Browse all 3667

Sinatra build REST API documentation [closed]

I have been looking all night for a gem to generate an API documentation from my sinatra routes. I should be able to specify with inline comments.

I have found https://rubygems.org/gems/sinatra-api-docs& https://rubygems.org/gems/sinatra-croon

but both just don't seem to work with my setup and are outdated too..

The other option was yard with some sinatra plugin, but that does not generate REST API specific layout when generating the docs.

Does anyone have any tools they know about?

All the information i want to reference for each route:

Object: Groups

Route: POST /create

Params: <name> Name of the group

Output:

{"name": "group","members": []}

Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>