Skip to content

Instantly share code, notes, and snippets.

@mrosati84
Created January 5, 2013 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrosati84/4463288 to your computer and use it in GitHub Desktop.
Save mrosati84/4463288 to your computer and use it in GitHub Desktop.
Restful resource definition pattern
GET /photos index display a list of 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 new 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