As developer I want an api endpoint such that that when I send a GET request to the URL, hateoas compliant, paginated list of all ancestries of a given study in the database is returned in JSON Format
This is a new endpoint, this is required to ensure scalability, it was previously embedded in the studies endpoint, but now a child object to the Studies data, and should still be accessible from within the study endpoint as a link on the URL
{
"type":"initial",
"numberOfIndividuals":4390,
"ancestralGroups":[
{
"ancestralGroup":"European"
}
],
"countryOfOrigin":[
],
"countryOfRecruitment":[
{
"majorArea":"Europe",
"region":"Northern Europe",
"countryName":"U.K."
}
]
}
Management Rules
- Rule 1: Endpoint - /v1/studies/{accessionId}/ancestries
- Rule 2: HTTP Request Method - GET
- Rule 3: Endpoint should accept accessionId as a path variable
- Rule 4: Endpoint should return full attributes of the ancestries
- Rule 5: Endpoint should be accessible to all
Acceptance Criteria
- Given a correct ancestries, when the front end sends a GET request to the endpoint
- List of corresponding ancestries data is returned in JSON Format
- Given a wrong accessionId, when a GET request is sent to the endpoint
- Properly described Resource not found exception error should be returned as JSON payload
Additional details here
As developer I want an api endpoint such that that when I send a GET request to the URL, hateoas compliant, paginated list of all ancestries of a given study in the database is returned in JSON Format
This is a new endpoint, this is required to ensure scalability, it was previously embedded in the studies endpoint, but now a child object to the Studies data, and should still be accessible from within the study endpoint as a link on the URL
{ "type":"initial", "numberOfIndividuals":4390, "ancestralGroups":[ { "ancestralGroup":"European" } ], "countryOfOrigin":[ ], "countryOfRecruitment":[ { "majorArea":"Europe", "region":"Northern Europe", "countryName":"U.K." } ] }Management Rules
Acceptance Criteria
Additional details here