couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jedediah Smith <jeded...@silencegreys.com>
Subject Re: partial/diff updates?
Date Thu, 27 Nov 2008 06:53:21 GMT

Has something like this been considered?

{
   "_id": "abc123",
   "foo": { "bar": [1,2,{ "baz": 3 }] }
}


GET /db/abc123/foo/bar/2/baz

3

PUT /db/abc123/foo/durr [4,5,6]

GET /db/abc123

{
   "_id": "abc123",
   "foo": {
     "bar": [1,2,{ "baz": 3 }],
     "durr": [4,5,6]
   }
}


You'd need a few rules for resolving ambiguities and attachments would 
probably have to use a different url (_attachment/file?) but it would be 
very convenient and RESTful.

Mime
View raw message