Skip to content

andyduong1920/demo_grape_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Step 1: Add gem 'grape'

bundle install

Step 2: Add

	config.paths.add 'app/api', glob: '**/*.rb'
	config.autoload_paths += Dir["#{Rails.root}/app/api/*"]

to config/application.rb

Step 3: Create folder app/api

Create folder app/api/v1

		Create file app/api/v1/user_api.rd

Create file root_v1.rb in app/api

Step 4:

Change routes.rb

Ex: link for v1: /api/v1/users

About

This demo grape api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published