couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf Nieuwenhuijsen" <>
Subject Re: My CouchDB feature wish number 1: partial updating
Date Wed, 07 May 2008 13:56:35 GMT
2008/5/7 Daniel Yokomizo <>:
>  In REST it's necessary that PUT has paste over semantics (i.e. update
>  or insert if doesn't exist). Using it for partial updates is
>  incorrect. As the HTTP spec defines PUT with this semantics all the
>  clients, proxies, etc., assume it, so we have to follow it precisely.
>  OTOH the HTTP verbs are extensible so we can define our own verbs to
>  do operations with other semantics. There's already a PATCH proposal
>  allowing partial updates of resources, you can see a blog entry about
>  the issues (from the proposal author) here:

This is another reason to do partial updates like:

PUT couchserver/database/document/pizzas/eaten

It would still be valid REST.


View raw message