/pharma/drugs

  • Description

    Search by id and retrieve information about a drug

  • URL (PATH)

    /pharma/drugs?id={id}?token=:token&id=:id

  • 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]
    CHEMBL940
    Drug id
  • Example request
                                         http://disnet.ctb.upm.es/api/disnet/pharma/drugs?name=CHEMBL940token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": {
        "drugId": "CHEMBL940",
        "drugName": "GABAPENTIN",
        "molecularType": "Small molecule",
        "chemicalStructure": "NCC1(CC(=O)O)CCCCC1",
        "inchiKey": "UGJMXCAKCUNAIE-UHFFFAOYSA-N"
      }
    }