Skip to content

Instantly share code, notes, and snippets.

@joelip
Created May 14, 2013 08:34
Show Gist options
  • Save joelip/5574516 to your computer and use it in GitHub Desktop.
Save joelip/5574516 to your computer and use it in GitHub Desktop.

Blog Application RESTful resources

User Model

GET       /users          READ all users
POST      /users          CREATE new user
GET       /users/new      view for CREATE
GET       /users/:id      READ a single user
PUT       /users/:id/edit view for UPDATE          
DELETE    /users/:id      DELETE user

Post Model

GET     /posts            READ all posts
POST    /posts            CREATE new post
GET     /posts/new        view for CREATE
GET     /posts/:id        READ a single post
GET     /posts/:id/edit   view for UPDATE
PUT     /posts/:id        UPDATE post
DELETE  /posts/:id        DELETE post
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment