mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 20:50:55 +00:00
* replace http with https. Replace http://central.maven.org with https://repo1.maven.org * replace http://www.apache.org/licenses/LICENSE-2.0 with https://www.apache.org/licenses/LICENSE-2.0 * Force HTTPS for mavenCentral gradle DSL Co-authored-by: Sebastien Rosset <serosset@cisco.com>
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 OpenAPI Generator project.
rackup -p 4567 config.ru
In your swagger ui, put in the following URL:
http://localhost:4567/resources.json
Voila!