Get all design documents in CouchDB
How c开发者_运维问答an I get a list of all design documents in CouchDB? Using a http query, not futon.
This is the exact query Futon does internally:
GET /dbname/_all_docs?startkey="_design/"&endkey="_design0"&include_docs=true
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.
Exists for powershell a module than simply all operation with CouchDB: PSCouchDB
With this command retrieve all design docs in a specific database. To view full request, use -Verbose parameter:
Get-CouchDBDatabaseDesignDocument -Database test
精彩评论