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