openapi-generator/samples/server/petstore/sinatra
2016-05-30 21:23:12 +08:00
..
api update php, nodejs, scalatra server for petstore 2016-04-15 20:05:45 +08:00
lib fix typo, update sinatra to use origianl petstore spec (yaml) 2016-04-04 16:17:23 +08:00
.swagger-codegen-ignore add defaulat license (apache2.0) to all generators 2016-05-29 15:02:06 +08:00
config.ru update readme, fix swaggering name 2015-06-19 02:32:50 +08:00
Gemfile add sinatra template 2015-06-19 02:11:08 +08:00
Gemfile.lock update readme, fix swaggering name 2015-06-19 02:32:50 +08:00
LICENSE add appendix to license 2016-05-30 21:23:12 +08:00
my_app.rb fix add route in sinatra 2015-12-13 17:22:30 +08:00
README.md update readme, fix swaggering name 2015-06-19 02:32:50 +08:00
swagger.yaml update php, nodejs, scalatra server for petstore 2016-04-15 20:05:45 +08: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.io. 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 config.ru

In your swagger ui, put in the following URL:

http://localhost:4567/resources.json

Voila!