update readme, fix swaggering name

This commit is contained in:
William Cheng 2015-06-19 02:32:50 +08:00
parent d178d5e7d8
commit 0b0325b8af
6 changed files with 27 additions and 8 deletions

View File

@ -67,8 +67,8 @@ public class SinatraServerCodegen extends DefaultCodegen implements CodegenConfi
setApiPackage("api");
supportingFiles.add(new SupportingFile("my_app.mustache", "", "my_app.rb"));
supportingFiles.add(new SupportingFile("Swaggering.rb", libFolder, "Swaggering.rb"));
supportingFiles.add(new SupportingFile("config.ru", "", "config.rb"));
supportingFiles.add(new SupportingFile("Swaggering.rb", libFolder, "swaggering.rb"));
supportingFiles.add(new SupportingFile("config.ru", "", "config.ru"));
supportingFiles.add(new SupportingFile("Gemfile", "", "Gemfile"));
supportingFiles.add(new SupportingFile("README.md", "", "README.md"));
}

View File

@ -2,7 +2,7 @@
## Overview
This is a project to provide Swagger support inside the [Sinatra](http://www.sinatrarb.com/) framework. You can find
out more about both the spec and the framework at http://swagger.wordnik.com. For more information about
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
@ -14,13 +14,13 @@ sinatra-cross_origin
```
## Getting started
This sample was generated with the [swagger-codegen](https://github.com/wordnik/swagger-codegen) project.
This sample was generated with the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project.
```
rackup -p 4567 config.ru
```
In your [swagger ui](https://github.com/wordnik/swagger-ui), put in the following URL:
In your [swagger ui](https://github.com/swagger-api/swagger-ui), put in the following URL:
```
http://localhost:4567/resources.json

View File

@ -0,0 +1,19 @@
GEM
remote: https://rubygems.org/
specs:
rack (1.6.4)
rack-protection (1.5.3)
rack
sinatra (1.4.6)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (>= 1.3, < 3)
sinatra-cross_origin (0.3.2)
tilt (2.0.1)
PLATFORMS
ruby
DEPENDENCIES
sinatra
sinatra-cross_origin

View File

@ -2,7 +2,7 @@
## Overview
This is a project to provide Swagger support inside the [Sinatra](http://www.sinatrarb.com/) framework. You can find
out more about both the spec and the framework at http://swagger.wordnik.com. For more information about
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
@ -14,13 +14,13 @@ sinatra-cross_origin
```
## Getting started
This sample was generated with the [swagger-codegen](https://github.com/wordnik/swagger-codegen) project.
This sample was generated with the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project.
```
rackup -p 4567 config.ru
```
In your [swagger ui](https://github.com/wordnik/swagger-ui), put in the following URL:
In your [swagger ui](https://github.com/swagger-api/swagger-ui), put in the following URL:
```
http://localhost:4567/resources.json