/bio/genes/{gene-id}/variants

  • Description

    Retrieve variants associated to a given gene.

  • URL (PATH)

    /bio/genes/{gene-id}/variants?token={token}

  • Method

    GET

  • Authentication

    Optional (token)

  • Request parameters & Path variables
    Parameter Description
    gene-id
    [integer]
    required
    An integer corresponding to a gene id
    token
    [alphanumeric]
    optional
    Optional access key to save the current query in your profile
  • Example request
                                         https://disnet.ctb.upm.es/api/disnet/bio/genes/72/variants?token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": [
        {
          "variantId": "rs1057516046",
          "chromosome": "2",
          "chrposition": "73913646",
          "consequence": "missense_variant"
        },
        {
          "variantId": "rs587777383",
          "chromosome": "2",
          "chrposition": "73909130",
          "consequence": "missense_variant"
        },
        ...
      ]
    }
                                    
  • Error response (application/json)

    Common errors

    Gene id error