EBISPOT / goci-rest

Apache License 2.0
4 stars 1 forks source link

Locus Rest API Endpoint to Get All Locus fora given association #64

Open sprintell opened 2 months ago

sprintell commented 2 months ago

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 loci of a given Locus 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 Association endpoint, but now a child object accessible from within the Association payload as a link on the URL

{
   "haplotypeSnpCount":null,
   "description":"Single variant",
   "strongestRiskAlleles":[
    {
        "riskAlleleName":"rs9497975-?",
        "riskFrequency":null,
        "genomeWide":null,
        "limitedList":null
    }
   ],
   "authorReportedGenes":[
    {
        "geneName":"intergenic",
        "entrezGeneIds":[

        ],
        "ensemblGeneIds":[

        ]
    }
   ]
}

Management Rules

Acceptance Criteria:

Additional details here