September 2017
Intermediate to advanced
244 pages
6h 44m
English
There can be two types of update operations:
Only thing that change to perform these two operations: HTTP method.
With the Update operation, to update some of attributes of the resource use:
HTTP method: PATCH
While to replace the whole resource use:
HTTP method: PUT
The URI and the parameters will remain the same:
URI: /{resource}/{resource_id}
Parameters: There can be multiple parameters in a query string. Initially, people try to pass these parameters in the body but actually, the PATCH and PUT parameters are passed using a query string.
Result: This should update or replace the resource based on the HTTP method.
Read now
Unlock full access