-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
23 lines (19 loc) · 930 Bytes
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
REST:
- Mapping between HTTP routes and CRUD
BLOG APP:
CRREATE
READ /allBlogs
UPDATE /updateBlog/:id
DESTROY /deleteBlog/:id
Name | Path | HTTP Verb | Purpose
--------------------------------------------------------------------------
Index | /dogs | GET | List all dogs
--------------------------------------------------------------------------
New | /dogs/new | GET | Show new dog form
Create | /dogs | POST | Create a new dog, then redirect somewhere
--------------------------------------------------------------------------
Show | /dogs/:id | GET | Show info about ONE specific dog
--------------------------------------------------------------------------
Edit | /dogs/:id/edit| GET | Show edit form for one dog|
Update | /dogs/:id| | PUT | Update a particular dog, then redirect somewhere
Destroy | /dogs/:id| | DELETE | Delete a particular dog, then redirect somewhere