openapi-generator/samples/server/petstore/sinatra
wing328 88227e08e3 Remove Apache license from server stub generators (#4200)
* remove php apache license

* remove license in sample code, update nodejs to use unlicnese

* remove license from jaxrs generator

* remove license from server generator

* update pom.xml for jaxrs resteasy joda server
2016-11-17 00:37:21 +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 better handling of reserved words for sintatra, dart 2016-10-18 17:58:19 +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!