List all CouchApps in CouchDB?

Is there a way to list all CouchApps in one CouchDB?

I would like to do something like:

couchapp list http://domain.tld:5984/content 

And return a list of all the names of the kuchappa.

+4
source share
1 answer

The trick is to use _all_docs, and then select the ones that interest you from this list with a start key and a final key.

Since all _id project documents start with _design /, we can select all documents between _design / and the next character, which is 0, giving _design0.

 http://www.couch.db:5984/database/_all_docs?startkey="_design/"&endkey="_design0" 

Good luck

+4
source

Source: https://habr.com/ru/post/1445020/


All Articles