/bio/diseases?name={name}

  • Description

    Retrieve the disease id of a given disease name.

  • URL (PATH)

    /bio/diseases?name=:name&token=:token

  • Method

    GET

  • Auth required

    Optional (token)

  • Request parameters
    Parameter Description
    name *required
    [alphanumeric]
    example: name=Abdomen distended
    Name of the disease
    token
    [alphanumeric]
    example: token=eyJhbGciOiJI...
    Optional access key to save the current query inside the user's profile
  • Example request
                                         GET http://disnet.ctb.upm.es/api/disnet/bio/diseases?name=Abdomen distended&token=
                                    
  • Success response (application/json)
                                        { 
        "token": "null", 
        "authorized": false, 
        "authorizationMessage": "null", 
        "responseCode": "200", 
        "responseMessage": "OK", 
        "errorsFound": null, 
        "diseases": { 
        "disease_id": "C0000731", 
        "disease_name": "Abdomen distended" 
    } 
    } 
    
                                    
  • Error response (application/json)

    Common errors

    Name error