Welcome Guest, Not a member yet? Register   Sign In
Resource Routes - PUT vs PATCH
#3

(07-21-2017, 01:46 AM)Narf Wrote:
(07-20-2017, 06:15 PM)natanfelles Wrote: Assuming that PATCH makes it possible to update one attribute at a time

Wrong assumption. You can update as many attributes as you want.

No. Yes, with PATCH you can update as many attributes as you need individually. But, as I understand it, the PUT is used to replace the entire entity.

I believe that PATCH makes the application more flexible because it does not "force" the client to send all the attributes to be updated, but only what is necessary.

I saw in most of the documentation recommending the use of PUT as the default for updating, but studying the difference between PUT and PATCH I had this doubt.

Here are some opinions and examples to take into consideration: https://stackoverflow.com/questions/2845...e-examples
Reply


Messages In This Thread
Resource Routes - PUT vs PATCH - by natanfelles - 07-20-2017, 06:15 PM
RE: Resource Routes - PUT vs PATCH - by Narf - 07-21-2017, 01:46 AM
RE: Resource Routes - PUT vs PATCH - by natanfelles - 07-21-2017, 09:37 AM
RE: Resource Routes - PUT vs PATCH - by skunkbad - 07-21-2017, 04:37 PM
RE: Resource Routes - PUT vs PATCH - by kilishan - 07-22-2017, 08:02 PM
RE: Resource Routes - PUT vs PATCH - by ciadmin - 07-22-2017, 09:11 PM
RE: Resource Routes - PUT vs PATCH - by ciadmin - 07-22-2017, 10:04 PM
RE: Resource Routes - PUT vs PATCH - by Narf - 07-24-2017, 12:17 AM
RE: Resource Routes - PUT vs PATCH - by skunkbad - 07-24-2017, 01:50 PM
RE: Resource Routes - PUT vs PATCH - by Narf - 07-25-2017, 12:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB