Adding the PATCH method for partial updates

The PUT method makes you update a complete entity, but sometimes you want to affect only a few fields, and in this case you can allow the PATCH method. PATCH is similar to PUT, but lets you update only some attributes. Adding support for this method is not complex, and is very similar to the PUT logic, so you may provide a more powerful server with relatively little extra coding.

You can read more about PATCH at https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH and if you care about its specification, at https://datatracker.ietf.org/doc/rfc5789/.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset