/pharma/targets

  • Description

    Retrieve all targets

  • URL (PATH)

    /pharma/targets?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
  • Example request
                                         http://disnet.ctb.upm.es/api/disnet/pharma/targets?token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": [
        {
          "targetId": "CHEMBL1075021",
          "targetName": "DNA gyrase subunit B"
        },
        {
          "targetId": "CHEMBL1075022",
          "targetName": "ParE"
        },
    ...
        {
          "targetId": "CHEMBL6198",
          "targetName": "Aspartic protease PM4"
        }
      ]
    }