Skip to content

RuiMochila/grape-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gem “grape”

Structure files as in /api

Route

mount API::Base => '/api' 

Swagger documentation

gem ‘grape-swagger’

Clone swagger UI: github.com/wordnik/swagger-ui

Copy dist content to public/api/docs

Change this line:

window.swaggerUi = new SwaggerUi({

// url: "http://petstore.swagger.wordnik.com/api/api-docs", url: "/api/swagger_doc.json", // <---- HERE dom_id: "swagger-ui-container",

After this you can check the API documentation and test it on: localhost:3000/api/docs/

About

Example Grape API through Rails with Swagger UI Docs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors