Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get all design documents in CouchDB

Tags:

couchdb

How can I get a list of all design documents in CouchDB? Using a http query, not futon.

like image 642
user89021 Avatar asked May 11 '10 20:05

user89021


2 Answers

This is the exact query Futon does internally:

GET /dbname/_all_docs?startkey="_design/"&endkey="_design0"&include_docs=true 
like image 153
mikeal Avatar answered Oct 21 '22 16:10

mikeal


New answer for an old question. From v2.2, you can query the _design_docs endpoint for a database: See the docs for deatils, but as a simple example:

GET /dbname/_design_docs 

Parameters to the endpoint are consistent with other bulk APIs, like _all_docs.

like image 38
Daniel Paull Avatar answered Oct 21 '22 17:10

Daniel Paull