/pharma/drugs/{targetId}/drugs

  • Description

    Retrieve all drugs associated to a target

  • URL (PATH)

    /pharma/drugs/{targetId}/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]
    CHEMBL1075149
    Target id
  • Example request
                                         http://disnet.ctb.upm.es/api/disnet/pharma/drugs/CHEMBL1075149/drugs?token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": [
        {
          "drugId": "CHEMBL421",
          "drugName": "SULFASALAZINE"
        },
        {
          "drugId": "CHEMBL508338",
          "drugName": "THIMEROSAL"
        },
        {
          "drugId": "CHEMBL600",
          "drugName": "ACETYLCYSTEINE"
        },
        {
          "drugId": "CHEMBL744",
          "drugName": "RILUZOLE"
        }
      ]
    }