PATCH vs PUT

On 02/19/2014 05:38 PM, Kingsley Idehen wrote:
> On 2/19/14 4:16 PM, Sandro Hawke wrote:
>> PUT is semantically the same as PATCH, just slower. 
>
> You mean: s/semantically/mechanically ?

What I meant was that anything you want to do with PATCH you could do 
with PUT, give or take considerations of round-trip time, efficiency, 
and difficulty of implementation.     It hadn't occurred to me that 
someone (ie Steve) might want to force clients to use PATCH instead of 
PUT in order to simplify implementation of the server.

     -- Sandro



>
> Isn't PATCH an update i.e., a selective replacement of document 
> content? While PUT is for creating a new document or overwriting an 
> existing document?
>
> In both cases, the assumption is that URLs denote the documents in 
> question.
>
> [1] https://tools.ietf.org/html/rfc5789 -- PATCH .
>

Received on Wednesday, 19 February 2014 23:28:34 UTC