HTTP METHOD | Uses |
---|---|
POST | To create a new resource. similar to create |
GET | To get the representation of a resource. similar to read |
PUT | To update a resource by replacing the whole resource |
DELETE | To delete a resource |
PATCH | To update a resource by changing the part of the resource that is required without replacing the entire resource. |
HEAD | To get only the response head not the body |
OPTIONS | To get all available options for a particular resource |