couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "HTTP_Document_API" by BrianCandler
Date Sun, 01 Nov 2009 12:07:53 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "HTTP_Document_API" page has been changed by BrianCandler.
The comment on this change is: Document open_revs.


  Here, ''disk'' means the revision content is stored on disk and can still be retrieved.
The other values indicate that the content of that revision is not available.
+ You can fetch the bodies of multiple revisions at once using the parameter `open_revs=["rev1","rev2",...]`,
or you can fetch all leaf revisions using `open_revs=all` (see [[Replication_and_conflicts]]).
The JSON returns an array of objects with an "ok" key pointing to the document, or a "missing"
key pointing to the rev string.
+ {{{
+ [
+ {"missing":"1-fbd8a6da4d669ae4b909fcdb42bb2bfd"},
+ {"ok":{"_id":"test","_rev":"2-5bc3c6319edf62d4c624277fdd0ae191","hello":"foo"}}
+ ]
+ }}}

View raw message