Skip to content

Instantly share code, notes, and snippets.

@StasKoval
Created December 20, 2014 16:39
Show Gist options
  • Save StasKoval/c1837b0222a02de80b38 to your computer and use it in GitHub Desktop.
Save StasKoval/c1837b0222a02de80b38 to your computer and use it in GitHub Desktop.
routes
Prefix Verb URI Pattern Controller#Action
api_users GET /api/users(.:format) api/users#index {:format=>:json}
POST /api/users(.:format) api/users#create {:format=>:json}
new_api_user GET /api/users/new(.:format) api/users#new {:format=>:json}
edit_api_user GET /api/users/:id/edit(.:format) api/users#edit {:format=>:json}
api_user GET /api/users/:id(.:format) api/users#show {:format=>:json}
PATCH /api/users/:id(.:format) api/users#update {:format=>:json}
PUT /api/users/:id(.:format) api/users#update {:format=>:json}
DELETE /api/users/:id(.:format) api/users#destroy {:format=>:json}
api_interviews GET /api/interviews(.:format) api/interviews#index {:format=>:json}
POST /api/interviews(.:format) api/interviews#create {:format=>:json}
new_api_interview GET /api/interviews/new(.:format) api/interviews#new {:format=>:json}
edit_api_interview GET /api/interviews/:id/edit(.:format) api/interviews#edit {:format=>:json}
api_interview GET /api/interviews/:id(.:format) api/interviews#show {:format=>:json}
PATCH /api/interviews/:id(.:format) api/interviews#update {:format=>:json}
PUT /api/interviews/:id(.:format) api/interviews#update {:format=>:json}
DELETE /api/interviews/:id(.:format) api/interviews#destroy {:format=>:json}
api_questions GET /api/questions(.:format) api/questions#index {:format=>:json}
POST /api/questions(.:format) api/questions#create {:format=>:json}
new_api_question GET /api/questions/new(.:format) api/questions#new {:format=>:json}
edit_api_question GET /api/questions/:id/edit(.:format) api/questions#edit {:format=>:json}
api_question GET /api/questions/:id(.:format) api/questions#show {:format=>:json}
PATCH /api/questions/:id(.:format) api/questions#update {:format=>:json}
PUT /api/questions/:id(.:format) api/questions#update {:format=>:json}
DELETE /api/questions/:id(.:format) api/questions#destroy {:format=>:json}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment