2012-09-06 09:19:13 -07:00
..
2012-09-05 17:25:01 -07:00
2012-09-05 17:25:01 -07:00
2012-09-06 09:09:47 -07:00
2012-09-06 09:19:13 -07:00
2012-09-06 09:12:11 -07:00
2012-09-05 17:48:37 -07:00

Swagger for Sinatra

Overview

This is a project to provide Swagger support inside the Sinatra framework. You can find out more about both the spec and the framework at http://swagger.wordnik.com. For more information about Wordnik's APIs, please visit http://developer.wordnik.com.

Prerequisites

You need to install ruby 1.9.3 and the following gems:

sinatra
sinatra-cross_origin

Getting started

This sample was generated with the swagger-codegen project.

rackup -p 4567 examples/config.ru

In your swagger ui, put in the following URL:

http://localhost:4567/resources.json

Voila!