Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Endpoint to export or Download filtered reported trait result in CSV or other formats #50

Open
sprintell opened this issue Jul 15, 2021 · 1 comment
Assignees

Comments

@sprintell
Copy link
Member

sprintell commented Jul 15, 2021

Description:
As developer
I want an api endpoint
So that I can download filtered list of reported traits in csv or other formats

Management Rules:
Rule 1: Endpoint - /v1/reported-traits/export
Rule 2: HTTP Request Method - GET
Rule 3: Endpoint should accept filter, and sort parameters as in /v1/reported-export?trait=...&size=20&sort=name,desc
Rule 4: Endpoint should trigger download of binary file according to specified format (csv)

Acceptance Tests:
Given no parameter
When the front end sends a get request to the endpoint
Binary file containing all reported traits should be downloaded

Given sorting, and/or some search and filter parameters
When the front end sends a get request to the endpoint
Binary file containing filtered list of reported traits satisfying the conditions in the url parameter must be returned

@sprintell sprintell changed the title Create API Endpoint to export or Download filtered reported trait result in CSV or other formats Create Endpoint to export or Download filtered reported trait result in CSV or other formats Jul 15, 2021
@sajo-ebi sajo-ebi self-assigned this Jul 28, 2021
@ljwh2
Copy link

ljwh2 commented Aug 24, 2022

Not part of standard workflow. Should not be too much work to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants