This is example rails application with grape
gem with swagger
documentation.
Below is the configuration of this application
Rails 5.1.4
Ruby 2.4.1
gem 'grape'
gem 'grape-swagger'
gem 'grape-swagger-rails'
gem 'swagger-blocks'
gem 'rack-cors', :require => 'rack/cors'
Clone the app using https
or ssh
and do bundle install
to up and run the application.
- Grape - For REST-like APIs in Ruby
- Grape Swagger - Documentation to your grape API
- Grape Swagger Rails - Swagger UI as Rails Engine for grape-swagger gem
- Swagger Blocks - Define and serve live-updating Swagger JSON for Ruby apps (Model Schema)
- Rack Cors - Rack Middleware for handling Cross-Origin Resource Sharing (CORS)