How can I get a list of all design documents in CouchDB? Using a http query, not futon.
Asked
Active
Viewed 1.0k times
3 Answers
48
This is the exact query Futon does internally:
GET /dbname/_all_docs?startkey="_design/"&endkey="_design0"&include_docs=true

JasonSmith
- 72,674
- 22
- 123
- 149

mikeal
- 4,037
- 2
- 27
- 22
-
2If you want *just* a list of design docs then drop &include_docs=true – Brad Rhoads Jan 31 '13 at 17:17
8
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.

Daniel Paull
- 6,797
- 3
- 32
- 41