EBISPOT / goci-rest

Apache License 2.0
4 stars 1 forks source link

SNP Rest API - API endpoint to get one Single Nucleotide Polymorphism data #59

Open sprintell opened 2 months ago

sprintell commented 2 months ago

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

{
  "initialSampleSize": "...",  
  "replicationSampleSize": "2,698 European ancestry Bipolar disorder cases, 1,649 …",
  "gxe": false,
  "gxg": false,
  "snpCount": 1922309,
  "qualifier": null,
  "imputed": true,
  "pooled": false,
  "studyDesignComment": null,
  "accessionId": "GCST000854",
  "fullPvalueSet": false,
  "userRequested": false,
  "pubmedId": "20971583",
  "platforms": [{}],
  "diseaseTrait": "Suicide risk",
  "genotypingTechnologies": [{}],
  “efo_uri”: "EFO_0004229",
  “efoTrait”: "Dupuytren Contracture",
  "_links": {
    "self": {
    "href": "{base_url}/v1/studies/GCST000841"
    },
    "ancestries": {
    "href": "{base_url}/v1/studies/GCST000841/ancestries"
    },
    "search": {
    "href": "{base_url}/v1/studies?pubmed_id"
    }
  }
}

Management Rules

Acceptance Criteria

Additional details here