Get Tasks by Station
Retrieves all tasks assigned to a specific kitchen station, optionally filtered by status.Path Parameters
The kitchen station identifier. Must be one of:
BAR- Beverage preparation stationHOT_KITCHEN- Hot food preparation stationCOLD_KITCHEN- Cold food preparation station
Query Parameters
Filter tasks by status. If omitted, returns all tasks for the station. Valid values:
PENDING- Tasks waiting to startIN_PREPARATION- Tasks currently being preparedCOMPLETED- Finished tasks
Response
Returns an array of task objects:Unique identifier for the task
ID of the order this task belongs to
Station assigned to this task (BAR, HOT_KITCHEN, or COLD_KITCHEN)
Table number for the order
List of products to prepare in this task. Each product has:
name- Product nametype- Product type (DRINK, HOT_DISH, COLD_DISH)
Timestamp when the task was created (ISO 8601 format)
Current task status (PENDING, IN_PREPARATION, or COMPLETED)
Timestamp when the task preparation started (null if not started)
Timestamp when the task was completed (null if not completed)
Example Request - All Tasks
Example Request - Filtered by Status
Example Response
Error Responses
400 Bad Request - Invalid Station:Start Task Preparation
Starts the preparation of a task, updating its status toIN_PREPARATION and recording the start timestamp.
Path Parameters
The unique identifier of the task to start
Response
Returns the updated task object:Unique identifier for the task
ID of the order this task belongs to
Station assigned to this task
Table number for the order
List of products to prepare
Timestamp when the task was created
Updated status:
IN_PREPARATIONTimestamp when preparation started (just set)
Timestamp when completed (null for newly started tasks)
Example Request
Example Response
Error Responses
404 Not Found:Task Workflow
Tasks follow this lifecycle:- Created - Task is created with
PENDINGstatus when an order is placed - Started - Kitchen staff calls
PATCH /api/tasks/{id}/startto begin preparation - Completed - Task status moves to
COMPLETED(implementation depends on business logic)
Station Assignment
Tasks are automatically assigned to stations based on product types:| Product Type | Assigned Station |
|---|---|
DRINK | BAR |
HOT_DISH | HOT_KITCHEN |
COLD_DISH | COLD_KITCHEN |