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] Update of "HTTP Document API" by mdornseif
Date Tue, 10 Mar 2009 08:17:36 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 mdornseif:
http://wiki.apache.org/couchdb/HTTP_Document_API

The comment on the change is:
Tried to better point out the nature of revisions

------------------------------------------------------------------------------
  
  See ["DocumentRevisions"] for additional notes on revisions.
  
- The above example gets the current revision. You can get a specific revision by using the
following syntax:
+ The above example gets the current revision. You may be able to get a specific revision
by using the following syntax:
  
  {{{
  GET /somedatabase/some_doc_id?rev=946B7D1C HTTP/1.0
@@ -206, +206 @@

  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 stored on disk. For example, the content of
an old revision may 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, ''_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.
  
  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