Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 89849 invoked from network); 3 Mar 2010 17:03:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Mar 2010 17:03:54 -0000 Received: (qmail 95072 invoked by uid 500); 3 Mar 2010 17:03:46 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 95034 invoked by uid 500); 3 Mar 2010 17:03:46 -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 95027 invoked by uid 500); 3 Mar 2010 17:03:46 -0000 Delivered-To: apmail-incubator-couchdb-commits@incubator.apache.org Received: (qmail 95024 invoked by uid 99); 3 Mar 2010 17:03:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 17:03:46 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT 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; Wed, 03 Mar 2010 17:03:44 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id C50D017621; Wed, 3 Mar 2010 17:03:23 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Wed, 03 Mar 2010 17:03:23 -0000 Message-ID: <20100303170323.15657.7853@eos.apache.org> Subject: =?utf-8?q?=5BCouchdb_Wiki=5D_Update_of_=22HTTP=5Fview=5FAPI=22_by_Sebasti?= =?utf-8?q?anCohnen?= 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 c= hange notification. The "HTTP_view_API" page has been changed by SebastianCohnen. The comment on this change is: added information on design documents and th= e meaning of the result hash (not yet finished). http://wiki.apache.org/couchdb/HTTP_view_API?action=3Ddiff&rev1=3D29&rev2= =3D30 -------------------------------------------------- = The ''inclusive_end'' option controls whether the ''endkey'' is included = in the result. It defaults to true. = + =3D=3D Getting Information about Design Documents (and their Views) =3D= =3D + You can query the design document (''_design/test'' in this case) by GET = for some information on the view: + {{{ + curl -X GET http://localhost:5984/databasename/_design/test/_info + }}} + will produce something like this: + {{{ + {"name":"test", "view_index":{"signature":"07ca32cf9b0de9c915c5d9ce653cdc= a3", "language":"javascript", "disk_size":4188, "updater_running":false, "c= ompact_running":false, "waiting_commit":false, "waiting_clients":0, "update= _seq":4, "purge_seq":0}} + }}} + = + =3D=3D=3D Meaning of the status hash =3D=3D=3D + ||'''Key'''||<-2>'''Description'''|| + ||''name''||<-2>Name of the design document without the ''_design'' prefi= x (string)|| + ||''view_index''||<-2>Contains information on the view (JSON object)|| + || ||'''Key'''||'''Description'''|| + || ||''signature''||The MD5 representation of the views of a design docum= ent (string)|| + || ||''language''||Language of the view used (string, default: "javascrip= t")|| + || ||''disk_size''||Size in Bytes of the view on disk (int)|| + || ||''updater_running''||Indicates if an update process is running (bool= ean)|| + || ||''compact_running''||Indicates if view compaction is running (boolea= n)|| + || ||''waiting_commit''||? (int)|| + || ||''waiting_clients''||? (int)|| + || ||''update_seq''||Sequence number of updates to this view (int)|| + || ||''purge_seq''||? (int)|| + = = =3D=3D Debugging Views =3D=3D =20