You can get additional information about the revisions for a
given document by supplying the revs_info
argument to the query:
GET http://couchdb:5984/recipes/FishStew?revs_info=true Accept: application/json
This returns extended revision information, including the availability and status of each revision:
{ "servings" : 4, "subtitle" : "Delicious with a green salad", "_id" : "FishStew", "_revs_info" : [ { "status" : "available", "rev" : "3-a1a9b39ee3cc39181b796a69cb48521c" }, { "status" : "available", "rev" : "2-7c4740b4dcf26683e941d6641c00c39d" }, { "status" : "available", "rev" : "1-9c65296036141e575d32ba9c034dd3ee" } ], "title" : "Irish Fish Stew", "_rev" : "3-a1a9b39ee3cc39181b796a69cb48521c" }
Table 6.6. Returned CouchDB Document with Detailed Revision Info
Field | Description |
_id (optional) | Document ID |
_rev (optional) | Revision ID (when updating an existing document) |
_revs_info [array] | CouchDB Document Extended Revision Info |
rev | Full revision string |
status | Status of the revision |