Abstract
Get
- Only retrieves data
- Can call GET multiple times with no Side-Effect
- Doesn’t have a Request Body
- Parameters in Request Header & URL
Delete
- Delete data
- Each call has a Side-Effect(delete data)
- Doesn’t have a Request Body
- Parameters in Request Header & URL
Use cases
- Delete resources created on Server
Post
- Creates new data
- Each call has a Side-Effect (new data be created)
- Has a Request Body
- Parameters in Request Body, Request Header & URL
Use cases
- Create resources on Server like api keys etc
Patch
- Updates existing data
- Each call has a Side-Effect (data updated)
- Has a Request Body
- Parameters in Request Body, Request Header & URL
Use cases
- Update resources created on Server