openapi-generator/samples/server/petstore/sinatra
Benjamin Douglas 34d9dca5e7 Update samples to current code/scripts
This is the result of

  - `$ git checkout master`
  - `$ bin/run-all-petstore`

No change was made to the code, just ran the aggregate sample generation
script.
2017-05-02 10:33:06 -07: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 Update samples to current code/scripts 2017-05-02 10:33:06 -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.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!