Using ?revs worked for me:

curl 'http://<server>:<port>/todolite/e52b90c8-33e4-403c-9407-dcd51e52e62d
?revs=true'

Returns:

{"_attachments":{"image":{"content_type":"image/jpg","digest":"sha1-tzEe/glc0+eNBdhewE4/WY5Hb9A=","length":220290,"revpos":1,"stub":true}},"_id":"e52b90c8-33e4-403c-9407-dcd51e52e62d","_rev":"3-b4e32de77544393bf8b4046d2d74d541","_revisions":{"ids":["b4e32de77544393bf8b4046d2d74d541","7355c812c1cff8d98e990e56666d78a9","eb5f9511ba65f4ea95f6bac505608dff"],"start":3},"checked":false,"created_at":"2014-07-15T17:14:03.292Z","list_id":"5cbee5d4-3220-4cfe-a795-618310c27018","title":"oak","type":"task"}




On Wed, Jul 16, 2014 at 4:31 PM, Jens Alfke <[email protected]> wrote:

> Looks like ?revs_info hasn't been implemented. It would be in
> handler.handleGetDoc( ) [rest/doc_api.go] if it were supported.
>
> ?revisions is supported, though. It's more compact, but it doesn't tell
> you whether the revisions are available or not.
>
> --Jens
>
> --
> You received this message because you are subscribed to the Google Groups
> "Couchbase Mobile" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mobile-couchbase/2F11CE38-9613-4680-99B3-B59F344823EF%40couchbase.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCH3XtZj5ai%2B2vMw_SBs-5qyysMMa9L3Kf4VJP9z0yd4Xg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to