Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 62577 invoked from network); 7 May 2008 13:57:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2008 13:57:08 -0000 Received: (qmail 12076 invoked by uid 500); 7 May 2008 13:57:09 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 11883 invoked by uid 500); 7 May 2008 13:57:09 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 11872 invoked by uid 99); 7 May 2008 13:57:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 06:57:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ralf.nieuwenhuijsen@gmail.com designates 209.85.146.179 as permitted sender) Received: from [209.85.146.179] (HELO wa-out-1112.google.com) (209.85.146.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 13:56:22 +0000 Received: by wa-out-1112.google.com with SMTP id m16so493159waf.6 for ; Wed, 07 May 2008 06:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=FMnxoeHI1tacsAndt8d0VdWPTfNR8u7FOrt4KMF6xtI=; b=N4rfhc3fKGursdr6fwGeI1IC53EQ7b0QxlBNKb1AGimtooxQQgc8/cn/xCySqTMloh0zzw4011s3cZJZF477FGv+rRTKG6HudIbmgKnpaOEmuuW31iUIN+nnYsiIVC59vJ3YQ2JSi0oOgpwwnKguhLoPiw9S98+deklznyM3cbA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=arj/YolICZRf+E3FfZG24uAjuHJsbLdZjIARGn/QpWjwZb2c0EN4+Pf1IB1OLAD35VgAqEoS5CaXpz76rpulUXrAFHekx4RgF+VucIHifXmVLFGIupga7d2kXrZlU+Yev5J5wiqjdppDMaJTVSAgTVq1Sz5gCT7XUsT+qIPqWHI= Received: by 10.114.153.18 with SMTP id a18mr1866491wae.127.1210168596154; Wed, 07 May 2008 06:56:36 -0700 (PDT) Received: by 10.115.88.16 with HTTP; Wed, 7 May 2008 06:56:35 -0700 (PDT) Message-ID: <41fe564f0805070656o32c03598k1eaf38f39bb8dce4@mail.gmail.com> Date: Wed, 7 May 2008 15:56:35 +0200 From: "Ralf Nieuwenhuijsen" To: couchdb-user@incubator.apache.org Subject: Re: My CouchDB feature wish number 1: partial updating In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6D58C6C1-6D0C-4D32-A77A-3A82FED6EAE8@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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: > 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.