Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-2433

Allow downloading of views

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.0.0
    • None
    • Fauxton
    • New Contributors Level (Easy)

    Description

      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

      [edit]:

      from https://github.com/apache/couchdb/pull/310#issuecomment-89025857:
      a button with download=true could be the solution

      it is important to note that the button will download the view itself – not the view results. the view results would be covered by the api-url button

      Attachments

        Activity

          People

            Unassigned Unassigned
            jan Jan Lehnardt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: