For so many times I am wondering which HTTP method should be used when I want to add, replace or modify a resource. Table below summarizes all the common methods and what they are doing.
HTTP Verb | CRUD | Meaning |
GET | Read | Get the resource. |
POST | Create | Create NEW resource. |
PATCH | Update/Modify | Modify part of the existing resource. Send only data you want to change. |
PUT | Update/Replace | Replace the existing resource with new one. |
DELETE | Delete | Delete the resource |
Source: https://www.restapitutorial.com/lessons/httpmethods.html