I’ve trying to get revisions of documents from the sync-gateway. These docs say to use revs=true and revs_info=true parameters. The revs_info parameter doesn’t seem to work, and is also not documented (its used in the example but not described in the doc). The response I get back has a list of ids:
But no _revs_info. As far as I can tell these ids aren’t any use because they are missing a numeric prefix. The example shows a more useful _revs_info block:
The revs_info parameter is not supported, you are correct, that is a docs issue.
You might be able to use open_revs=all to get the data you want, by default this returns multipart, but you can get a plain JSON response by passing a Accept header e.g.
curl -X GET "http://localhost:4985/db/doc5?open_revs=all" -H "Accept: application/json"
If you look closely, the _revisions object also has a start property whose value is the starting numeric prefix of the rev IDs. Our docs don’t describe this, but the CouchDB docs do.
IIRC, _revs_info support has been added for 1.3 and should be in the latest nightly builds.
Hey @nick-couchbase - Andy is correct - open_revs=all should give you all the open (i.e. non-deleted leaf) revisions as multipart entries. If that’s not working for you, I’d be interested in hearing the details.