curl --request POST \
--url https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Ben",
"table_number": 18,
"dish_ids": [
"692a4a34a46ecf001f35ac6f",
"6a4a857c022eb7001f9b8972",
"6b7c2441a0db43001f9bf377"
],
"special_requests": "No peanuts.",
"scheduled at": null
}
'{
"id": "674d0bf5c28b69001f8e03a1",
"created_at": "2024-04-22T10:00:00Z",
"updated_at": "2024-04-22T10:00:00Z",
"name": "John",
"table_number": 8,
"dish_ids": [
"692a4a34a46ecf001f35ac6f",
"6a4a857c022eb7001f9b8972",
"6b7c2441a0db43001f9bf377"
],
"special_requests": "<string>",
"priority": 3,
"scheduled_at": null,
"status": "Received"
}{
"title": "Human-readable error title.",
"detail": "Human-readable error details."
}{
"title": "Human-readable error title.",
"detail": "Human-readable error details."
}{
"title": "Human-readable error title.",
"detail": "Human-readable error details."
}Orders
Create an order
Create an order in the client app. The order includes the name, table number, dish ids, any special requests, and when the order is scheduled for.
The order id, priority, and status properties in the response are used to triage orders to their prep stations and track their progress.
POST
/
orders
curl --request POST \
--url https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Ben",
"table_number": 18,
"dish_ids": [
"692a4a34a46ecf001f35ac6f",
"6a4a857c022eb7001f9b8972",
"6b7c2441a0db43001f9bf377"
],
"special_requests": "No peanuts.",
"scheduled at": null
}
'{
"id": "674d0bf5c28b69001f8e03a1",
"created_at": "2024-04-22T10:00:00Z",
"updated_at": "2024-04-22T10:00:00Z",
"name": "John",
"table_number": 8,
"dish_ids": [
"692a4a34a46ecf001f35ac6f",
"6a4a857c022eb7001f9b8972",
"6b7c2441a0db43001f9bf377"
],
"special_requests": "<string>",
"priority": 3,
"scheduled_at": null,
"status": "Received"
}{
"title": "Human-readable error title.",
"detail": "Human-readable error details."
}{
"title": "Human-readable error title.",
"detail": "Human-readable error details."
}{
"title": "Human-readable error title.",
"detail": "Human-readable error details."
}Authorizations
Body
application/json
The request body to create an order requires the following properties: dish_ids and name.
Response
Order successfully created.
Indicates the status of the order preparation.
The expeditor will use this field to sort incoming orders and determine what dishes are ready to be prepared and assembled by station.
Available options:
Draft, Received, In Progress, Ready for Assembly, On the Way, Ready for Pickup Example:
"Received"