开发者

How can I list the revision numbers of a document in CouchDB?

开发者 https://www.devze.com 2022-12-13 18:49 出处:网络
I know that I can retrieve a specific revision of a document via http://localhost:59开发者_如何学运维84/mydb/626b345059c2a54fbe8b8009ba87a409?rev=2-3696048776

I know that I can retrieve a specific revision of a document via

http://localhost:59开发者_如何学运维84/mydb/626b345059c2a54fbe8b8009ba87a409?rev=2-3696048776

but this assumes I know the revision number 2-3696048776. How can I list all available revisions for document 626b345059c2a54fbe8b8009ba87a409?


You can list revs info like this: http://localhost:5984/mydb/626b345059c2a54fbe8b8009ba87a409?revs_info=true

This appears to be available on the version I'm running which is 0.10.1.

0

精彩评论

暂无评论...
验证码 换一张
取 消