Search Herb By Disease

POST /api/herb/search-diseases

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

Body Required

  • herb string Required

Responses

  • 200

    Successful Response

  • 404

    The requested page was not found

  • 422

    Validation Error

    Hide response attribute Show response attribute object
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"
    }
  ]
}