Paŭlo Ebermann 3a48ba8bfd Update all the samples.
(except clojure + scalatra, because those are broken, will fixed with later master merge.)
2017-03-13 19:50:10 +01:00
..
2016-08-27 02:34:33 +03:00
2015-06-19 02:32:50 +08:00
2015-06-19 02:11:08 +08:00
2015-12-13 17:22:30 +08:00
2015-06-19 02:32:50 +08:00
2017-03-13 19:50:10 +01: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!