Skip to content

Instantly share code, notes, and snippets.

@theresaluu
Created October 5, 2016 09:14
Show Gist options
  • Select an option

  • Save theresaluu/1a8b13c4dff25b83e78697ade18984cb to your computer and use it in GitHub Desktop.

Select an option

Save theresaluu/1a8b13c4dff25b83e78697ade18984cb to your computer and use it in GitHub Desktop.
Prefix Verb URI Pattern Controller#Action
v1_user_emotions GET /v1/users/:user_id/emotions(.:format) api/v1/emotions#index {:subdomain=>"api"}
POST /v1/users/:user_id/emotions(.:format) api/v1/emotions#create {:subdomain=>"api"}
v1_emotion GET /v1/emotions/:id(.:format) api/v1/emotions#show {:subdomain=>"api"}
PATCH /v1/emotions/:id(.:format) api/v1/emotions#update {:subdomain=>"api"}
PUT /v1/emotions/:id(.:format) api/v1/emotions#update {:subdomain=>"api"}
DELETE /v1/emotions/:id(.:format) api/v1/emotions#destroy {:subdomain=>"api"}
v1_users GET /v1/users(.:format) api/v1/users#index {:subdomain=>"api"}
POST /v1/users(.:format) api/v1/users#create {:subdomain=>"api"}
v1_user GET /v1/users/:id(.:format) api/v1/users#show {:subdomain=>"api"}
PATCH /v1/users/:id(.:format) api/v1/users#update {:subdomain=>"api"}
PUT /v1/users/:id(.:format) api/v1/users#update {:subdomain=>"api"}
DELETE /v1/users/:id(.:format) api/v1/users#destroy {:subdomain=>"api"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment