Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/microservices-patterns/ftgo-application/llms.txt

Use this file to discover all available pages before exploring further.

The Kitchen Service REST API is available at http://localhost:8083. It exposes operations for kitchen staff to act on tickets generated from customer orders. Tickets are created automatically by the Order Service saga; the kitchen staff use this API to signal acceptance and commit to a ready-by time.

POST /tickets//accept

Marks a kitchen ticket as accepted and records the time by which the order will be ready for pickup. Calling this endpoint transitions the ticket out of the pending state and unblocks the downstream delivery workflow.

Path parameters

ticketId
number
required
The unique ID of the kitchen ticket to accept.

Request body

readyBy
string
required
The date and time by which the kitchen will have the order ready, in ISO-8601 local date-time format, e.g. "2024-11-15T18:45:00".

Response

This endpoint returns no response body. A 200 OK status indicates the ticket was accepted successfully.

Status codes

CodeMeaning
200 OKTicket accepted and readyBy time recorded.

Example

curl -s -X POST http://localhost:8083/tickets/1/accept \
  -H "Content-Type: application/json" \
  -d '{
    "readyBy": "2024-11-15T18:45:00"
  }'

Build docs developers (and LLMs) love