Skip to content

Core Endpoints ​

A. GET Endpoints ​

A.1 Content retrievals ​

EndpointDescriptionExample(s)
/srvcSummary of value types and counts
/{sbjValType}/sbjVals/{objValType}/objValPage(s) of mappings in an object value type for the subject values given/sandbox/sbjVals/allelePgroup/objVal?sbjVals=a,b,c
/{sbjValType}/objVals/{objValType}/objValPage(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}/objValPage(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).

EndpointDescriptionExample(s)
/{sbjValType}/sbjVals/countObject value counts for each subject value, for each object value type there are 1+ values in/sandbox/sbjVals/count?sbjVals=CAHLA718819011,CAHLA718818691
/{sbjValType}/objVals/countSubject 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}/countObject value counts for each subject value, in a specific object value type/sandbox/sbjVals/allelePgroup/count?sbjVals=CAHLA718905408,CAHLA718906874
/{sbjValType}/objVals/{objValType}/countSubject 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}/countSubject value count for a specific object value in an object value type/sandbox/objVals/allelePgroup/objVal/B*07:02P/count
/{sbjValType}/sbjVal/{sbjVal}/objVals/countObject 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}/countObject 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.

ModifierPossible valuesDescriptionExample(s)
detailmin, low, med (default), high, maxmin: 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
respFormatjson (default), tsv, plain, yamljson: JSON
tsv: Tab-delimited columns (downloadable file)
plain: Same content as tsv, but renderable by the browser
yaml: YAML
/sandbox/sbjVals/alleleGgroup/objVal?respFormat=plain
sbjValsComma-separated list of subject values to query./sandbox/sbjVals/imgtAcc?sbjVals=CAHLA718906493,CAHLA718906868
objValsComma-separated list of object values to query./sandbox/objVals/allelePgroup?objVals=C*01:02P,B*78:02P
pgPositive integerPage number to retrieve/sandbox/sbjVals/imgtAcc?pg=5&pgSize=10
pgSizePositive integer <= 1000Number of records per page/sandbox/sbjVals/imgtAcc?pg=5&pgSize=10

A.4 Fields in API response ​

FieldDescriptionExample(s)
sbjValSubject value"sbjVal": "CAHLA718906874"
sbjValCountNumber of subject values for an object value"sbjValCount": 229
sbjValIriSubject value entity resource identifier"sbjValIri": "https://ldh.clinicalgenome.org/ldh/val-map/sandbox/sbjVal/CAHLA1449529499"
objValsObject value info"objVals": {
  "alleleGgroup": [...],
  "imgtAcc": [...]
}
objValObject value"objVal": "HLA16224"
objValCountNumber of object values for a subject value"objValCount": 4
objValIriObject value entity resource identifier"objValIri": "https://ldh.clinicalgenome.org/ldh/val-map/sandbox/sbjVal/CAHLA1449529499/objVals/imgtAcc/objVal/HLA40478"
infoAdditional info about a value"info": {
  "iri": {
    "api": [ "https://www.ebi.ac.uk/cgi-bin/ipd/api/allele/HLA00001" ]
  }
}
createdValue creation date"created": "2025-01-02T15:27:07.300Z"
creatorValue creator"creator": "cgLdhAdministrator"

A.5 Example responses ​

A.5.1 JSON ​

For illustrative purposes, all are at the detail level of med.

json5
// 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"
      }
    ]
  }
}
json5
// 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"
      }
    ]
  }
}
json5
// 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_73725
CASV4220344313	gnomadSv2	INS_10_73725

A.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.

bash
 curl -X GET \
 -H "Content-Type: text/plain" --data-binary @tmp.txt \
 "https://${HOST}/ldh/val-map/sandbox/sbjVals/alleleGgroup/objVal"
CAHLA718817118
CAHLA718817133
CAHLA718817118	alleleGgroup	A*01:01:01G
CAHLA718817133	alleleGgroup	A*01:01:01G

BIOINFORMATICS RESEARCH LABORATORY