EBISPOT / gwas-curation-service

0 stars 0 forks source link

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

Open sprintell opened 3 years ago

sprintell commented 3 years ago

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

ljwh2 commented 2 years ago

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