couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guby <>
Subject Re: My CouchDB feature wish number 1: partial updating
Date Wed, 07 May 2008 14:44:01 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
> 20
> It would still be valid REST.
Yes, that is true!
I am all for you approach!
But maybe that is not what CouchDB wants to be or do.
It would be really great though, and should be backward compatible  
with the way it works now too!

> Greetings,
> Ralf.

Best regards

View raw message