/pharma/diseases

  • Description

    Get all diseases in the pharmacology layer

  • URL (PATH)

    /pharma/diseases?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/diseases?token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": [
        {
          "diseaseId": "C0000727",
          "diseaseName": "Abdomen, Acute"
        },
        {
          "diseaseId": "C0000729",
          "diseaseName": "Abdominal Cramps"
        },...
        {
          "diseaseId": "C5436345",
          "diseaseName": "MENTAL RETARDATION, AUTOSOMAL DOMINANT 25, FORMERLY"
        }
      ]
    }