Skip to content

Instantly share code, notes, and snippets.

@victorb
Last active December 14, 2015 18:19
Show Gist options
  • Save victorb/5128913 to your computer and use it in GitHub Desktop.
Save victorb/5128913 to your computer and use it in GitHub Desktop.
RESTful guidelines
Verb Path Action Used for
GET /photos index display a list of all photos
GET /photos/new new return an html form for creating a new photo
POST /photos create create a new photo
GET /photos/:id show display a specific photo
GET /photos/:id/edit edit return an html form for editing a photo
PUT /photos/:id update update a specific photo
DELETE /photos/:id destroy delete a specific photo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment