EBISPOT / goci-rest

Apache License 2.0
4 stars 1 forks source link

Association Rest API Endpoint to Get One Association Record #57

Open sprintell opened 2 months ago

sprintell commented 2 months ago

As developer I want an association details API endpoint such that when I send a GET request to the URL I can get full details of a single association data in JSON Format

This will be a replacement to the old endpoint https://www.ebi.ac.uk/gwas/rest/api/studies

{
   "associationId":14347,
   "riskFrequency":"NR",
   "pvalueDescription":"(progression)",
   "pvalueMantissa":7,
   "pvalueExponent":-8,
   "multiSnpHaplotype":false,
   "snpInteraction":false,
   "snpType":"novel",
   "standardError":null,
   "range":null,
   "description":null,
   "orPerCopyNum":null,
   "betaNum":null,
   "betaUnit":null,
   "betaDirection":null,
   "lastMappingDate":"2023-09-15T12:31:10.000+0000",
   "lastUpdateDate":"2023-09-15T12:31:10.000+0000",
   “efoTrait”: "Dupuytren Contracture",
   "pValue":7e-8,
   "_links":{
    "self":{
        "href":"{base_url}/v1/associations/14347"
    },
    "locus":{
        "href":"{base_url}/v1/associations/14347/loci"
    },
    "search":{
        "href":"{base_url}/v1/associations?fullPvalueSet"
    }

Must Have Additional Payload Attributes - These are displayed on the catalog UI:

Management Rules

Acceptance Criteria

Additional details here

sajo-ebi commented 1 week ago

Local Code changes completed