GitHub user KlausTrainer opened a pull request:
https://github.com/apache/couchdb/pull/111
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.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/KlausTrainer/couchdb 1923-attachment-related-query-params
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb/pull/111.patch
----
commit 2e07bc55f863c5901bef8de9d040f7e371a7d2e5
Author: Klaus Trainer <klaus_trainer@posteo.de>
Date: 2013-11-15T16:02:20Z
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.
----
|