Search Disease
The endpoint for searching a disease
Args: disease (str): the disease to search for token (oauth2 bearer token): the token for the user
Returns: (str) The disease details
Raises: HTTPException: if the user is not logged in
POST
/api/disease/search
curl \
-X POST http://api.example.com/api/disease/search \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'disease=string'
Request example
{
"disease": "string"
}
Request examples
{
"disease": "string"
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}