/pharma/phenotypes

  • Description

    Search by name and retrieve information about a phenotype effect

  • URL (PATH)

    /pharma/phenotypes?name={name}?token=:token&name=:name&exact-match=:exact-match

  • 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
    name *required
    [alphanumeric]
    ketoacidosis
    Phenotype name
    exact-match
    [boolean] true by default
    false
    If true it searches an exact name match, if false it finds all phenotypes containing the string in the parameter 'name'
  • Example request
                                         http://disnet.ctb.upm.es/api/disnet/pharma/phenotypes?name=ketoacidosis&exact-match=false&token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": [
        {
          "phenotypeId": "C0011880",
          "phenotypeName": "Diabetic ketoacidosis"
        },
        {
          "phenotypeId": "C0220982",
          "phenotypeName": "Ketoacidosis"
        }
      ]
    }