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

  • Description

    Retrieve diseases associated to a given gene.

  • URL (PATH)

    /bio/genes/{gene-id}/diseases?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/2/diseases?token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": [
        {
          "diseaseId": "C0002395",
          "diseaseName": "Alzheimer\\'s Disease"
        },
        {
          "diseaseId": "C0002726",
          "diseaseName": "Amyloidosis"
        },
        {
          "diseaseId": "C0002878",
          "diseaseName": "Anemia, Hemolytic"
        },
        {
          "diseaseId": "C0007102",
          "diseaseName": "Malignant tumor of colon"
        },
        
        ...
      ]
    }
                                    
  • Error response (application/json)

    Common errors

    Gene id error