Retrieve Variant References for a Variant Identifier
get
/HSDataService-web/api/3.2.0/variants/{id}/variantXRef
This endpoints supports the retrieval of Variant References information for a Variant Identifier. It returns Variant Reference information like Database, Reference Identifier and other Reference associated information.
Request
Supported Media Types
- application/json
- application/xml
Path Parameters
- id
-
Type:
integer(int64)Required:trueVariant Row ID
Response
Supported Media Types
- application/json
- application/xml
200 Response
successful operation
Body
Root Schema : VariantXRefs
Type:
object- resourceType
-
Type:
string - variantIdentifier
-
Type:
objectIdentifierIdentifier assigned by a given system - variantReferences
-
Type:
objectLinkedReference - variantXref
-
Type:
arrayvariantXrefList of Variant XRef Information
Nested Schema : Identifier
Type:
objectIdentifier assigned by a given system
- system
-
Type:
stringSystem which assigned this identifier - value
-
Type:
stringIdentifier value
Nested Schema : LinkedReference
Type:
object- display
-
Type:
string - reference
-
Type:
string
Nested Schema : variantXref
Nested Schema : VariantXRef
Type:
object- database
-
Type:
stringDatabase Name. For ex.,dbSNP_142 - referenceId
-
Type:
stringReference ID to External Database. For ex.,rs13079411
400 Response
Invalid parameters supplied
404 Response
Variant varaint XRef(s) not found
Examples
The following example submits a GET request.
API URL
http://localhost:7001/HSDataService-web/api/3.2.0/variants/536777/variantXRef
Example of Response Body
The following example shows the response returned in JSON format.
{
"resourceType" : "VariantXRef",
"variantIdentifier" : {
"system" : "ODB",
"value" : "536777"
},
"variantXref" : [ {
"database" : "dbSNP_138",
"referenceId" : "rs137927599"
} ],
"variantReferences" : {
"reference" : "/HSDataService-web/api/3.2.0/variants/536777"
}
}