incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf Nieuwenhuijsen" <ralf.nieuwenhuij...@gmail.com>
Subject Re: My CouchDB feature wish number 1: partial updating
Date Wed, 07 May 2008 13:56:35 GMT
2008/5/7 Daniel Yokomizo <daniel.yokomizo@gmail.com>:
>  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:
>  http://www.snellspace.com/wp/?p=894.

This is another reason to do partial updates like:

PUT couchserver/database/document/pizzas/eaten
20

It would still be valid REST.

Greetings,
Ralf.

Mime
View raw message