/pharma/drugs/{drugId}/phenotypes

  • Description

    Retrieve all phenotype effects associated to a drug

  • URL (PATH)

    /pharma/drugs/{drugId}/phenotypes?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]
    CHEMBL99946
    Drug id
  • Example request
                                         http://disnet.ctb.upm.es/api/disnet/pharma/drugs/CHEMBL99946/phenotypes?token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": [
        {
          "phenotypeId": "C0011581",
          "phenotypeName": "Depressive Disorder"
        },
        {
          "phenotypeId": "C0040336",
          "phenotypeName": "Tobacco Use Disorder"
        }
      ]
    }