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 Thu, 25 Dec 2008 22:18:16 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:
Added documentation regarding "endkey".

------------------------------------------------------------------------------
  }
  }}}
  
- The query string parameters ''startkey'' and ''count'' may also be used to limit the result
set. For example:
+ The query string parameters ''startkey'', ''endkey'' and ''count'' may also be used to limit
the result set. For example:
  
  {{{
  GET somedatabase/_all_docs?startkey=doc2&count=2 HTTP/1.0
@@ -128, +128 @@

  }
  }}}
  
- And combined with ''descending'':
+ Use ''endkey'' if you are interested  in a specific range of documents:
+ 
+ {{{
+ GET somedatabase/_all_docs?startkey=doc2&endkey=doc3 HTTP/1.0
+ }}}
+ 
+ This will get keys inbetween and including doc2 and doc3; e.g. ''doc2-b'' and ''doc234''.
+ 
+ Both approaches can be combined with ''descending'':
  
  {{{
  GET somedatabase/_all_docs?startkey=doc2&count=2&descending=true HTTP/1.0

Mime
View raw message