Quick download
genesys-pgr/genesys-server!799 adds a new endpoint to download a CSV file of the filtered accessions. It accepts a HTTP POST to /api/v1/a/query
with the following form parameters:
-
_access_token
is the user's access token -
select
the columns to include in the file -
filter
the filter JSON object (as text)
The download limit is 1,000,000 records.
UI
Add a button "Quick download". Please make all download buttons available only to logged in users.
When "Quick download" clicked, it opens a dialog with:
- Title: Download passport data for {} accessions in CSV format
- Body
- A list of labels with checkboxes for
uuid
,instCode
(disabled, always on),accessionNumber
(always on),doi
(always on),storage
,duplSite
,taxonomy.genus
,taxonomy.species
- The labels should reuse existing
t
names frommodel:Accession
! - The standard Download disclaimer
- A list of labels with checkboxes for
- Footer: "Download" button
"Download" must be placed in a HTML <form method="POST" target=".../api/v1/a/query">
with the form parameters listed above.