Get a single meal
Returns one recorded meal of the given employee by its identifier.
Availability: Full version only — a Clock instance answers 404 for this endpoint.
Request
GET /api/v1/employees/{username}/meals/{id}
curl --request GET \
--url 'https://www.zep-online.de/zepinstanz/next/api/v1/employees/{username}/meals/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'Path parameters
- Name
username- Type
- string
- Description
The employee username
- Name
id- Type
- integer
- Description
The meal ID
Response
{
"data": {
"id": 1,
"employee_id": "max.mustermann",
"date": "2024-07-20T00:00:00.000000Z",
"breakfast": 0,
"lunch": 1,
"dinner": 0
}
}Response fields
- Name
id- Type
- integer
- Description
Unique identifier of the recorded meal.
- Name
employee_id- Type
- string
- Description
Username of the employee this meal was recorded for.
- Name
date- Type
- string (date-time)
- Description
Calendar day the meal was recorded for.
- Name
breakfast- Type
- integer, nullable
- Description
Whether breakfast was taken on this day.
- Name
lunch- Type
- integer, nullable
- Description
Whether lunch was taken on this day.
- Name
dinner- Type
- integer, nullable
- Description
Whether dinner was taken on this day.