couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes J. Schmidt (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1923) Allow ?attachments=true alongside ?include_docs=true on view
Date Fri, 22 Nov 2013 08:06:35 GMT

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

Johannes J. Schmidt commented on COUCHDB-1923:
----------------------------------------------

`attachments=true` is fine.

I think its way better to explain "Use attachments=true to include attachments. On a view,
you must also set include_docs=true to ask for the docs with the attachments." rather than
"On a view you set include_attachments=true along with include_docs=true to get the attachments
in one go whereas on a single document fetch you say attachments=true". 

I prefer less query parameter names with slightly different behaviour which explain themselves
logically. Various names all have to be remembered.

> 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