Reading, Updating and Deleting Resources
GET /users/42 retrieves a resource. PUT /users/42 replaces its representation. PATCH /users/42 modifies selected fields. DELETE /users/42 requests deletion.
A common mistake is using POST for every operation. Doing so loses HTTP semantics that clients, proxies, caches, monitoring tools, and retry systems can understand.
For DELETE, repeated requests should generally leave the system in the same desired state, although an API may choose whether a second deletion returns 404 or another documented result.
CRUD Mapping
Create
POST /users
Read collection
GET /users
Read member
GET /users/42
Replace
PUT /users/42
Partial update
PATCH /users/42
Delete
DELETE /users/42