couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Slater <nsla...@apache.org>
Subject Re: Document Updates
Date Thu, 13 Nov 2008 23:37:19 GMT
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 <json> in <jsonpath>
>   insert <json> after <jsonpath>
>   insert <json> before <jsonpath>
>   delete <jsonpath>
>   replace <jsonpath> with <json>
>
> 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

Mime
View raw message