1.6 KiB
1.6 KiB
Kitchen Ops Workflow API
Purpose
This BFF exposes kitchen board, claim or release, transition, and priority workflows over REST while delegating orchestration to kitchen-service.
Endpoints
GET /api/kitchen/ops/board?contextId=<value>- Returns board lanes and available stations.
POST /api/kitchen/ops/work-items/claim- Claims a kitchen work item.
POST /api/kitchen/ops/work-items/release- Releases a kitchen work item using the current claim workflow path.
POST /api/kitchen/ops/work-items/transition- Requests a kitchen work-item state transition.
POST /api/kitchen/ops/board/priority- Updates kitchen priority for a work item.
Upstream Dependency
- Base address configuration:
KitchenService:BaseAddress - Default runtime target:
http://kitchen-service:8080 - Internal upstream routes:
GET /internal/kitchen/boardPOST /internal/kitchen/work-items/claimPOST /internal/kitchen/orders/transitionPOST /internal/kitchen/work-items/priority
Notes
kitchen-servicecurrently exposes claim but not a dedicated release contract, so the release route reuses the claim validation path and projects a release-oriented response for the BFF edge.- Transition requests now forward
ContextIdtokitchen-serviceso kitchen actions land in the correct shared restaurant lifecycle context. - The BFF keeps temporary edge-state compatibility for existing web clients by translating
Cooking|Ready|Servedto the canonical kitchen-service statesPreparing|ReadyForPickup|Delivered. - Correlation IDs are preserved through Thalos session checks and kitchen-service calls.