1、_all_docs
curl -X GET
result
{“total_rows”:2,”offset”:0,”rows”:[
{"id":"joelennon","key":"joelennon","value":{"rev":"1-45597617"}},
{"id":"johnsmith","key":"johnsmith","value":{"rev":"2-843046980"}}
]}
total_rows:number of documents stored in database
the results are ordered by document ID
curl -X GET 84/contacts/_all_docs?descending=true
curl -X GET ?descending=true\&limit=1
curl -X GET ?include_docs=true2、 _all_docs_by_seq
curl -X GET _by_seq
result:
{"total_rows":2,"offset":0,"rows":[
{"id":"johndoe","key":2,"value":{"rev":"2-2789254104","deleted":true}},
{"id":"joelennon","key":5,"value":{"rev":"1-45597617"}},
{"id":"johnsmith","key":7,"value":{"rev":"2-843046980"}}
]}
This view returns all
documents in the database, including deleted ones, ordered by the last time they were modified
阅读(1381) | 评论(0) | 转发(0) |