CRUD and REST
Resource action | Associated HTTP request |
---|---|
Create | POST |
Read | GET |
Update | PATCH |
Delete | DELETE |
REST is an acronym for Representational State Transfer.
Example: managing users
CRUD is a way of talking about the basic actions we might want to perform with users:
- create a new user
- see all the users
- see a particular user
- update a particular user
- delete a particular user