Get Location For Herb

POST /api/location/get-location

The endpoint for getting location for a herb Args: herb (str): the herb to search for token (oauth2 bearer token): the token for the user

Returns: (str) The location for the herb

Raises: HTTPException: if the user is not logged in

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/location/get-location
curl \
 -X POST http://api.example.com/api/location/get-location \
 -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"
    }
  ]
}