/pharma/diseases/{diseaseId}/drugs

  • Description

    Retrieve all drugs associated to a disease in the pharmacology layer

  • URL (PATH)

    /pharma/diseases/{diseaseId}/drugs?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]
    C0751771
    Disease id
  • Example request
                                         http://disnet.ctb.upm.es/api/disnet/pharma/phenotypes/C0751771/drugs?token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": [
        {
          "drugId": "CHEMBL1009",
          "drugName": "LEVODOPA"
        },
    ...    {
          "drugId": "CHEMBL940",
          "drugName": "GABAPENTIN"
        }
      ]
    }