Skip to content

mstine/sinatra-swagger-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinatra Swagger Example

This is an very basic Sinatra app that I set up in order to learn how to bootstrap a Swagger toolchain. It uses source2swagger to generate the Swagger JSON.

Usage:

bundle install
rackup

This will start a server at http://localhost:9292. If you hit that with your browser, you'll see the API documentation rendered via the Swagger UI.

If you'd like to toy around with the Sinatra app and expand the API, have fun. Don't forget to document your API changes, following the source2swagger specs.

To regenerate the API documentation, simply execute:

rake

And refresh the page.

About

Example Sinatra app to bootstrap Swagger toolchain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published