/bio/variants/{variant-id}

  • Description

    Retrieve information about a given variant.

  • URL (PATH)

    /bio/variants/{variant-id}?token={token}

  • Method

    GET

  • Authentication

    Optional (token)

  • Request parameters & Path variables
    Parameter Description
    variant-id
    [alphanumeric]
    required
    A variant identifier
    token
    [alphanumeric]
    optional
    Optional access key to save the current query in your profile
  • Example request
                                         https://disnet.ctb.upm.es/api/disnet/bio/variants/rs10002268?token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": {
        "variantId": "rs10002268",
        "chromosome": "4",
        "chrposition": "55653725",
        "consequence": "intergenic_variant"
      }
    }
                                    
  • Error response (application/json)

    Common errors

    Variant id error