Core Endpoints
A. GET Endpoints
A.1 Content retrievals
| Endpoint | Description | Example(s) |
|---|---|---|
/srvc | Summary of value types and counts | |
/{sbjValType}/sbjVals/{objValType}/objVal | Page(s) of mappings in an object value type for the subject values given | /sandbox/sbjVals/allelePgroup/objVal?sbjVals=a,b,c |
/{sbjValType}/objVals/{objValType}/objVal | Page(s) of mappings in an object value type for the object values given | /sandbox/objVals/allelePgroup/objVal?objVals=x,y,z |
/{sbjValType}/objVals/{objValType}/objVal/{objVal} | Page(s) of mappings for a specific object value in an object value type | /sandbox/objVals/allelePgroup/objVal/B*07:02P |
/{sbjValType}/sbjVal/{sbjVal}/objVals/{objValType}/objVal | Page(s) of mappings for a specific subject in an object value type | /sandbox/sbjVal/CAHLA718906874/objVals/allelePgroup/objVal |
/{sbjValType}/sbjVal/{sbjVal}/objVals/{objValType}/objVal/{objVal} | A single mapping, if it exists | /sandbox/sbjVal/CAHLA718906874/objVals/allelePgroup/objVal/B*07:276P |
Pages of content
Whether you are using a modifier or payload, the service will return a limited number of mappings per page. Some values requested may not appear until pg > 1.
A.2 Count retrievals
For convenience, the following endpoints return the counts for the provided value(s).
| Endpoint | Description | Example(s) |
|---|---|---|
/{sbjValType}/sbjVals/count | Object value counts for each subject value, for each object value type there are 1+ values in | /sandbox/sbjVals/count?sbjVals=CAHLA718819011,CAHLA718818691 |
/{sbjValType}/objVals/count | Subject value counts for each object value, which may belong in different object value types | /sandbox/objVals/count?objVals=C*01:02P,HLA00401 |
/{sbjValType}/sbjVals/{objValType}/count | Object value counts for each subject value, in a specific object value type | /sandbox/sbjVals/allelePgroup/count?sbjVals=CAHLA718905408,CAHLA718906874 |
/{sbjValType}/objVals/{objValType}/count | Subject value counts for each object value, which belong in a specific object value type | /sandbox/objVals/allelePgroup/count?objVals=C*01:02P,B*07:02P |
/{sbjValType}/objVals/{objValType}/objVal/{objVal}/count | Subject value count for a specific object value in an object value type | /sandbox/objVals/allelePgroup/objVal/B*07:02P/count |
/{sbjValType}/sbjVal/{sbjVal}/objVals/count | Object value counts for a subject value, for each object value type there are 1+ values in | /sandbox/sbjVal/CAHLA718906874/objVals/count |
/{sbjValType}/sbjVal/{sbjVal}/objVals/{objValType}/count | Object value count for a specific subject value, on a specific object value type | /sandbox/sbjVal/CAHLA718906874/objVals/allelePgroup/count |
A.3 Modifiers
Below is a list of possible query parameters. Depending on the endpoint, some may not be applicable, and thus have no effect.
| Modifier | Possible values | Description | Example(s) |
|---|---|---|---|
detail | min, low, med (default), high, max | min: Counts only low: Only identifier-level info med: IRIs included high/max: All detail, including any created metadata | /sandbox/objVals/allelePgroup/objVal/C*01:02P?detail=high |
respFormat | json (default), tsv, plain, yaml | json: JSONtsv: Tab-delimited columns (downloadable file) plain: Same content as tsv, but renderable by the browser yaml: YAML | /sandbox/sbjVals/alleleGgroup/objVal?respFormat=plain |
sbjVals | Comma-separated list of subject values to query. | /sandbox/sbjVals/imgtAcc?sbjVals=CAHLA718906493,CAHLA718906868 | |
objVals | Comma-separated list of object values to query. | /sandbox/objVals/allelePgroup?objVals=C*01:02P,B*78:02P | |
pg | Positive integer | Page number to retrieve | /sandbox/sbjVals/imgtAcc?pg=5&pgSize=10 |
pgSize | Positive integer <= 1000 | Number of records per page | /sandbox/sbjVals/imgtAcc?pg=5&pgSize=10 |
A.4 Fields in API response
| Field | Description | Example(s) |
|---|---|---|
sbjVal | Subject value | "sbjVal": "CAHLA718906874" |
sbjValCount | Number of subject values for an object value | "sbjValCount": 229 |
sbjValIri | Subject value entity resource identifier | "sbjValIri": "https://ldh.clinicalgenome.org/ldh/val-map/sandbox/sbjVal/CAHLA1449529499" |
objVals | Object value info | "objVals": { "alleleGgroup": [...], "imgtAcc": [...] } |
objVal | Object value | "objVal": "HLA16224" |
objValCount | Number of object values for a subject value | "objValCount": 4 |
objValIri | Object value entity resource identifier | "objValIri": "https://ldh.clinicalgenome.org/ldh/val-map/sandbox/sbjVal/CAHLA1449529499/objVals/imgtAcc/objVal/HLA40478" |
info | Additional info about a value | "info": { "iri": { "api": [ "https://www.ebi.ac.uk/cgi-bin/ipd/api/allele/HLA00001" ] } } |
created | Value creation date | "created": "2025-01-02T15:27:07.300Z" |
creator | Value creator | "creator": "cgLdhAdministrator" |
A.5 Example responses
A.5.1 JSON
For illustrative purposes, all are at the detail level of med.
// Response data of GET `/sandbox/sbjVal/CASV4220344313/objVals/gnomadSv2/objVal`
{
"objVals": {
"gnomadSv2": [
{
"info": {
"iri": {
"ui": [
"https://gnomad.broadinstitute.org/variant/INS_10_73724?dataset=gnomad_sv_r2_1"
]
}
},
"objVal": "INS_10_73724",
"objValIri": "https://ldh.clinicalgenome.org/ldh/val-map/sandbox/sbjVal/CASV4220344313/objVals/gnomadSv2/objVal/INS_10_73724"
},
{
"info": {
"iri": {
"ui": [
"https://gnomad.broadinstitute.org/variant/INS_10_73725?dataset=gnomad_sv_r2_1"
]
}
},
"objVal": "INS_10_73725",
"objValIri": "https://ldh.clinicalgenome.org/ldh/val-map/sandbox/sbjVal/CASV4220344313/objVals/gnomadSv2/objVal/INS_10_73725"
}
]
}
}// Response data of GET `/sandbox/sbjVal/CASV4220344313/objVals/gnomadSv2/objVal/INS_10_73725`
{
"objVals": {
"gnomadSv2": [
{
"info": {
"iri": {
"ui": [
"https://gnomad.broadinstitute.org/variant/INS_10_73725?dataset=gnomad_sv_r2_1"
]
}
},
"objVal": "INS_10_73725",
"objValIri": "https://ldh.clinicalgenome.org/ldh/val-map/sandbox/sbjVal/CASV4220344313/objVals/gnomadSv2/objVal/INS_10_73725"
}
]
}
}// Response data of GET `/sandbox/sbjVal/CASV4220344313/objVals/count`
{
"objVals": {
"gnomadSv2": {
"objValCount": 2
},
"nist": {
"objValCount": 1
}
}
}A.5.2 TSV
The columns, in order, are sbjVal, objValType, and objVal.
The detail modifier is not relevant when requesting tab-delimited payloads. If metadata is needed, request JSON responses instead.
CASV4220344313 gnomadSv2 INS_10_73724
CASV4220344313 gnomadSv2 INS_10_73725CASV4220344313 gnomadSv2 INS_10_73725A.6 Batch GETs
Data on multiple mappings can be retrieved via the following endpoints:
/{sbjValType}/sbjVals/{objValType}/objVal/{sbjValType}/objVals/{objValType}/objVal/{sbjValType}/sbjVals/{objValType}/count/{sbjValType}/objVals/{objValType}/count/{sbjValType}/sbjVals/count/{sbjValType}/objVals/count
Either the sbjVals/objVals modifier (see "Modifiers") can be used, or a payload can be sent.
- A JSON payload (
application/json) should be an array of ID strings. - A plain-text payload (
text/plain) should have each ID on a separate line, without any quotes.
An example request and response are provided below.
curl -X GET \
-H "Content-Type: text/plain" --data-binary @tmp.txt \
"https://${HOST}/ldh/val-map/sandbox/sbjVals/alleleGgroup/objVal"CAHLA718817118
CAHLA718817133CAHLA718817118 alleleGgroup A*01:01:01G
CAHLA718817133 alleleGgroup A*01:01:01G