hgsongra / grape_swagger_model_schema_demo

Rails 5.1.4 with Grape API, Swagger and Model Schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grape Swagger Model Schema Demo

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 installto up and run the application.

References

  • 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)

About

Rails 5.1.4 with Grape API, Swagger and Model Schema


Languages

Language:Ruby 80.7%Language:HTML 14.5%Language:JavaScript 3.0%Language:CSS 1.8%