|
Post by farzadio on May 2, 2023 6:19:25 GMT -5
PUT and PATCH are both HTTP methods used for updating resources on a server. PUT is used for completely replacing an existing resource on the server. When a PUT request is sent, the entire resource is sent to the server and replaces the existing resource, regardless of whether or not the fields have changed. PATCH, on the other hand, is used for making partial updates to an existing resource. When a PATCH request is sent, only the fields that have been changed are sent to the server and updated, leaving the other fields unchanged. In summary, PUT is used for complete updates, while PATCH is used for partial updates. The choice between PUT Vs PATCH will depend on the specific requirements of the use case.
|
|