couchdb-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/COUCHDB-1923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829218#comment-13829218
] 

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: https://issues.apache.org/jira/browse/COUCHDB-1923
>             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
(v6.1#6144)

Mime
View raw message