From couchdb-user-return-1869-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Fri Nov 14 07:05:40 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 10263 invoked from network); 14 Nov 2008 07:05:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2008 07:05:40 -0000 Received: (qmail 54443 invoked by uid 500); 14 Nov 2008 07:05:46 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 54327 invoked by uid 500); 14 Nov 2008 07:05:46 -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 54316 invoked by uid 99); 14 Nov 2008 07:05:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2008 23:05:46 -0800 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 antony.blakey@gmail.com designates 209.85.198.247 as permitted sender) Received: from [209.85.198.247] (HELO rv-out-0708.google.com) (209.85.198.247) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2008 07:04:24 +0000 Received: by rv-out-0708.google.com with SMTP id k29so1473472rvb.0 for ; Thu, 13 Nov 2008 23:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=QmTpoO2ZB5p9MQ911nDCanrvBYXyBlsNNy+czzZTxLU=; b=lJJyvvbaJ6h66EsSYoyAkSkEi2tkKYCWUKbFpzLc9ZpkhabA9++bvHNg+XhpARSr/U MHpaGWO4pIJ+T8n5Lw+zYqwSOoJzhReZDxvLSsPkSonCCBiczAOU7X3mdzgYNibzspzK NPBKGwzEuehSNYjwnkp8pfH8KyC28YU/I0Apk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=lPdHTZhmQmx751kP3O+CMGY7uRGLmSJYK6GsXzc1MA3+wKgIMqM8ZfKuScoR9WUR+O bkB9Daa5CRxG2d6+q0Qdvfihs+SQKX7ynXcjH8KPD1legaRx0J9pDWdhWS7LwpL7Ni3G Odpn/kylqBhBSE5nAR8mL+pFwjC12Rs2w3i0Y= Received: by 10.142.254.8 with SMTP id b8mr254489wfi.144.1226646308401; Thu, 13 Nov 2008 23:05:08 -0800 (PST) Received: from ?192.168.0.16? (ppp121-45-41-103.lns10.adl2.internode.on.net [121.45.41.103]) by mx.google.com with ESMTPS id 9sm537697wfc.16.2008.11.13.23.05.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Nov 2008 23:05:07 -0800 (PST) Message-Id: From: Antony Blakey To: couchdb-user@incubator.apache.org In-Reply-To: <20081114040241.GJ15315@tumbolia.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: Document Updates Date: Fri, 14 Nov 2008 17:35:03 +1030 References: <46837.75533.qm@web52503.mail.re2.yahoo.com> <20081113163808.GA15315@tumbolia.org> <27d8d0930811130840t47269d91o9539fae200bcd380@mail.gmail.com> <20081113164344.GB15315@tumbolia.org> <99294D7F-4D06-47F9-800B-DB9213D929F4@gmail.com> <20081113220313.GG15315@tumbolia.org> <20081113233718.GI15315@tumbolia.org> <20081114040241.GJ15315@tumbolia.org> X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org On 14/11/2008, at 2:32 PM, Noah Slater wrote: > On Fri, Nov 14, 2008 at 12:32:18PM +1030, Antony Blakey wrote: >> You would want to allow partial updates in a bulk operation, so any >> packaging would need to be usable in that context as well. Given >> updates >> need to be handled separately, maybe deletions should be as well. > ... >> "PUT": [ > ... >> "PATCH": [ > ... >> "DELETE": [ > > We shouldn't be tunneling verbs though media types, this is > antithetical to the > principals of REST and would harm all manner of possible > intermediary clients. I'm not tunneling verbs, I'm just re-using the names of the methods that would normally be used as selectors. I wasn't implying anything more than that. Couch's bulk operation already has this issue. You delete a document using the DELETE verb, yet in a bulk operation you set the "_deleted" special attribute. That is in effect tunneling the DELETE, using a different representation, within a POST. Antony Blakey ------------- CTO, Linkuistics Pty Ltd Ph: 0438 840 787 There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. -- C. A. R. Hoare