couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Trivial Update of "HTTP Document API" by BobDionne
Date Wed, 29 Apr 2009 12:32:59 GMT
Dear Wiki user,

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

The following page has been changed by BobDionne:
http://wiki.apache.org/couchdb/HTTP_Document_API

------------------------------------------------------------------------------
  GET /somedatabase/some_doc_id?revs=true HTTP/1.0
  }}}
  
- This returns the current revision of the document, but with an additional field, ''_revs'',
the value being a list of the available revision IDs. ''Note though that not every of those
revisions of the document is necessarily still available.'' For example, the content of an
old revision get removed by compacting the database, or it may only exist in a different database
if it was replicated.
+ This returns the current revision of the document, but with an additional field, ''_revisions'',
the value being a list of the available revision IDs. ''Note though that not every of those
revisions of the document is necessarily still available.'' For example, the content of an
old revision get removed by compacting the database, or it may only exist in a different database
if it was replicated.
  
  To get more detailed information about the available document revisions, use the ''revs_info''
parameter instead. In this case, the JSON result will contain a ''_revs_info'' property, which
is an array of objects, for example:
  

Mime
View raw message