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