From commits-return-1550-apmail-couchdb-commits-archive=couchdb.apache.org@couchdb.apache.org Thu Dec 25 22:18:38 2008 Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 95595 invoked from network); 25 Dec 2008 22:18:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Dec 2008 22:18:38 -0000 Received: (qmail 51797 invoked by uid 500); 25 Dec 2008 22:18:38 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 51773 invoked by uid 500); 25 Dec 2008 22:18:37 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 51764 invoked by uid 500); 25 Dec 2008 22:18:37 -0000 Delivered-To: apmail-incubator-couchdb-commits@incubator.apache.org Received: (qmail 51761 invoked by uid 99); 25 Dec 2008 22:18:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Dec 2008 14:18:37 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Dec 2008 22:18:37 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id D1DA7118DD for ; Thu, 25 Dec 2008 22:18:16 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: couchdb-commits@incubator.apache.org Date: Thu, 25 Dec 2008 22:18:16 -0000 Message-ID: <20081225221816.19915.1305@eos.apache.org> Subject: [Couchdb Wiki] Update of "HTTP Document API" by mdornseif X-Virus-Checked: Checked by ClamAV on apache.org 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