Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 16202 invoked from network); 13 Nov 2008 23:41:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2008 23:41:02 -0000 Received: (qmail 20870 invoked by uid 500); 13 Nov 2008 23:41:08 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 20838 invoked by uid 500); 13 Nov 2008 23:41:08 -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 20827 invoked by uid 99); 13 Nov 2008 23:41:08 -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 15:41:08 -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: local policy) Received: from [80.68.94.123] (HELO tumbolia.org) (80.68.94.123) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2008 23:39:45 +0000 Received: from nslater by tumbolia.org with local (Exim 4.69) (envelope-from ) id 1L0lkV-0005XA-3V for couchdb-user@incubator.apache.org; Thu, 13 Nov 2008 23:37:19 +0000 Date: Thu, 13 Nov 2008 23:37:19 +0000 From: Noah Slater To: couchdb-user@incubator.apache.org Subject: Re: Document Updates Message-ID: <20081113233718.GI15315@tumbolia.org> Mail-Followup-To: couchdb-user@incubator.apache.org References: <403828.36717.qm@web52508.mail.re2.yahoo.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Noah: Awesome User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Nov 14, 2008 at 09:09:03AM +1030, Antony Blakey wrote: > IMO the simplest thing that would work (ignoring representation) looks > something like this: > > insert in > insert after > insert before > delete > replace with > > where jsonpath is roughly as: http://goessner.net/articles/JsonPath/ > without the executable expressions. Hmm, this seems pretty cool. I did some digging to see what else is out there: * http://intertwingly.net/blog/2008/02/21/APP-Level-Patch * http://blog.mozilla.com/rob-sayre/2008/02/15/restful-partial-updates/ * http://www.snellspace.com/wp/?p=895 * http://lists.w3.org/Archives/Public/ietf-http-wg/2008JanMar/0316.html * http://www.snellspace.com/wp/?p=902 I think I agree that if this was to hit CouchDB it should be done via the PATCH method, makes the most sense given the context. -- Noah Slater, http://tumbolia.org/nslater