Get Location For Herb
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
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"
}
]
}