/pharma/diseases

  • Description

    Search by id and retrieve information about a disease in the pharmacology layer

  • URL (PATH)

    /pharma/diseases?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]
    C0751771
    Disease id
  • Example request
                                         http://disnet.ctb.upm.es/api/disnet/pharma/diseases?id=C0751771token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": {
        "diseaseId": "C0751771",
        "diseaseName": "Sleep Bruxism"
      }
    }