Here’s a quick overview of all HTTP methods and when to use them:

Method Action Description Example URL Status Code
GET Read Get a list/item /users or /users/2 200 OK
POST Create Add new data /users 201 Created
PUT Replace Replace all fields /users/2 200 OK
PATCH Update Modify some fields /users/2 200 OK
DELETE Remove Delete item /users/2 204 No Content
Tags: