/pharma/drugs/{drugId}/diseases

  • Description

    Retrieve all diseases in the pharmacology layer associated to a drug

  • URL (PATH)

    /pharma/drugs/{drugId}/diseases?token=:token

  • Method

    GET

  • Auth required

    Optional (token)

  • Request parameters
    Parameter Description
    token
    [alphanumeric]
    example: token=eyJhbGciOiJI...
    Optional access key to save the current query inside the user's profile
    id *required
    [alphanumeric]
    CHEMBL100116
    Drug id
  • Example request
                                         http://disnet.ctb.upm.es/api/disnet/pharma/drugs/CHEMBL100116/diseases?token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": [
        {
          "diseaseId": "C0000737",
          "diseaseName": "Abdominal Pain"
        },
        {
          "diseaseId": "C0001127",
          "diseaseName": "Acidosis, Respiratory"
        },
    ...
        {
          "diseaseId": "C5392921",
          "diseaseName": "Prescription Opioid Abuse"
        }
      ]
    }