Created
January 5, 2013 19:48
-
-
Save mrosati84/4463288 to your computer and use it in GitHub Desktop.
Restful resource definition pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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