openapi-generator/samples/server/petstore/sinatra
2017-12-18 12:30:57 +08:00
..
.swagger-codegen Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +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 Spelling fixes 2016-08-27 02:34:33 +03: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
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 Fix typo in Petstore yaml (#7195) 2017-12-18 12:30:57 +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!