couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Vander Wilt (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1923) Allow ?attachments=true alongside ?include_docs=true on view
Date Thu, 21 Nov 2013 18:58:35 GMT


Nathan Vander Wilt commented on COUCHDB-1923:

> However, the `attachments` query parameter is
> currently used for only one API endpoint: `/:db/:docid`.

Fair point. While I don't see the encoding/multipart issues as a particularly strong argument
(that's negotiated via Accept rather than params) the "no attachment contents will be sent
unless the `include_docs` query parameter value is also `true`" is interesting.

Would it make sense to share a pattern from the stale/feed parameters and turn include_docs
into a ternary? E.g. `include_docs=true`, `include_docs=attachments`?

> Allow ?attachments=true alongside ?include_docs=true on view
> ------------------------------------------------------------
>                 Key: COUCHDB-1923
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>            Reporter: Nathan Vander Wilt
> I have a situation where it'd be handy to get inline [base64] attachments for the documents
from a view response (already using include_docs=true).
> I wonder if this is as easy a fix as COUCHDB-549 was?

This message was sent by Atlassian JIRA

View raw message