couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1923) Allow ?attachments=true alongside ?include_docs=true on view
Date Thu, 28 Nov 2013 22:59:35 GMT

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

ASF subversion and git services commented on COUCHDB-1923:
----------------------------------------------------------

Commit ca41964b70b96b5fa76504e4001523ed29c718b5 in branch refs/heads/master from [~klaus_trainer]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=ca41964 ]

Extend support for attachment-related query params

Until now, the boolean query parameters `attachments` and
`att_encoding_info` have only been supported for the document API
endpoint (`/{db}/{docid}`).

This extends support for queries to the changes (`/{db}/_changes`) and
view (`/{db}/_design/{ddoc}/_view/{view}`) API endpoints:

* If `include_docs` and `attachments` equal `true`, the Base64-encoded
  contents of attachments are included with the documents in changes or
  view query results, respectively.

* If `include_docs` and `att_encoding_info` equal `true`, encoding
  information is included in attachment stubs if the particular
  attachment is compressed.

Closes COUCHDB-1923.


> 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