List an employee’s meals
Returns the paginated list of recorded meals (breakfast/lunch/dinner) for the given employee.
Availability: Full version only — a Clock instance answers 404 for this endpoint.
Request
GET /api/v1/employees/{username}/meals
curl --request GET \
--url 'https://www.zep-online.de/zepinstanz/next/api/v1/employees/{username}/meals' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'Path parameters
- Name
username- Type
- string
- Description
The employee username
Query parameters
- Name
page- Type
- integer, nullable
- Description
The page of results to return, counting from 1.
Response
{
"data": [
{
"id": 1,
"employee_id": "max.mustermann",
"date": "2024-07-20T00:00:00.000000Z",
"breakfast": 0,
"lunch": 1,
"dinner": 0
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": "string",
"label": "string",
"active": true
}
],
"path": "string",
"per_page": 1,
"to": 1,
"total": 1
}
}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.