Search Herb By Disease

POST /api/herb/search-herbs

The endpoint for searching a herb by disease

Args: disease (str): the disease to search for token (oauth2 bearer token): the token for the user

Returns: (str) The herb for the disease

Body Required

  • disease 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-herbs
curl \
 -X POST http://api.example.com/api/herb/search-herbs \
 -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"
    }
  ]
}