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.
|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|