Skip to content

Instantly share code, notes, and snippets.

View jbc2313's full-sized avatar
💻
Programming || Sleeping

Jim Corbin jbc2313

💻
Programming || Sleeping
View GitHub Profile

RESTful Routes to CRUD Mapping

Example resource: posts

HTTP Method
(Verb)
Path/Endpoint/URI CRUD Operation Typical
Controller Action
Has Data
Payload
GET /posts Read all posts index No
GET /posts/:id Read a specific post show No
POST /posts Create a new post create Yes
PUT /posts/:id Update specified post update Yes