GrapeSwaggerRails
Swagger UI as Rails Engine for grape-swagger gem
Installation
Add this line to your application's Gemfile:
gem 'grape-swagger-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install grape-swagger-rails
Usage: add this line to your routes.rb
mount GrapeSwaggerRails::Engine => '/swagger'
Create ./config/initializer/swagger.rb
with lines:
GrapeSwaggerRails..url = "/swagger_doc.json"
GrapeSwaggerRails..app_name = 'Swagger'
GrapeSwaggerRails..app_url = 'http://swagger.wordnik.com'
Known problems
To avoid problems with the validation parameters in POST
request using this gem,
please use the head version:
gem 'grape-swagger', :git=>'git://github.com/jhecking/grape-swagger.git'
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request