[
https://issues.apache.org/jira/browse/COUCHDB-2433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14385891#comment-14385891
]
ASF GitHub Bot commented on COUCHDB-2433:
-----------------------------------------
GitHub user robertkowalski opened a pull request:
https://github.com/apache/couchdb-chttpd/pull/30
allow downloading docs/views
this enables downloading of views using a browser, e.g. via a
button in Fauxton.
api: http://localhost:5984/mydb/_design/foobar?download=true
PRs:
https://github.com/apache/couchdb-couch/pull/42
https://github.com/apache/couchdb/pull/310
https://github.com/apache/couchdb-chttpd/pull/30
COUCHDB-2433
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/robertkowalski/couchdb-chttpd
2433-download-views
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-chttpd/pull/30.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #30
----
commit eb8dbbebec6d4143379f769728ef93403e10e3ce
Author: Robert Kowalski <[email protected]>
Date: 2015-03-29T18:48:16Z
allow downloading docs/views
this enables downloading of views using a browser, e.g. via a
button in Fauxton.
api: http://localhost:5984/mydb/_design/foobar?download=true
PRs:
https://github.com/apache/couchdb-couch/pull/42
https://github.com/apache/couchdb/pull/310
https://github.com/apache/couchdb-chttpd/pull/30
COUCHDB-2433
----
> Allow downloading of views
> --------------------------
>
> Key: COUCHDB-2433
> URL: https://issues.apache.org/jira/browse/COUCHDB-2433
> Project: CouchDB
> Issue Type: Improvement
> Security Level: public(Regular issues)
> Components: Fauxton
> Affects Versions: 2.0.0
> Reporter: Jan Lehnardt
> Assignee: Robert Kowalski
> Priority: Minor
>
> I have a non-technical user of CouchDB that would like a “JSON Export” of
> views in Fauxton. They can’t use the command line where they can just `curl
> $viewurl > export.json`.
> One way to implement this is add a new query parameter to view queries could
> be `/db/_design/_view/name?download=true` which adds a Content-Disposition
> header so browsers offer the link as a download (and whatever else is
> necessary to make browsers behave :)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)