Ordering API
squishykid opened this issue · 2 comments
squishykid commented
Simple UI:
-page 1 is a list of tables. Select a table
-page 2 is a list of menu items and number boxes. submit at the bottom.
GET /order
shows all the tables which have people seated
GET /order/new?table=#
show the order menu for a table
POST /order/new?table=#
- create a new order for a table.
- need to accept a list of menu items and quantities.
- Errors if the table is reserved. After reserved and before paid.
- Redirects to
GET /order
on success
arosspope commented
Nah I don't think it should error if the table is reserved (currently occupied). I think a customer should be able to make multiple orders (e.g. first they order drinks, then food, etc)
arosspope commented
I think reserving a table and ordering for a reservation should occur on two separate endpoints @squishykid