Difference between Interview Questions
PUT and PATCH?
The main difference between the PUT and PATCH method is that the PUT method uses the request URI to supply a modified version of the requested resource which replaces the original version of the resource, whereas the PATCH method supplies a set of instructions to modify the resource. If the PATCH document is larger than the size of the new version of the resource sent by the PUT method then the PUT method is preferred.
Simply put, unlike PUT, PATCH applies a partial update to the resource.
The verbs and actions are matched as follows:
POST – Create
GET – Read/Retrieve
PUT/PATCH – Update
DELETE – Delete