Skip to content

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

@sprintell

Description

@sprintell

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions