POST /restaurant
Request
body:
JSON
"name": str
Response
Status: 200
body:
JSON
"restaurantId": str
POST /table
Request
body:
JSON
"restaurantId": str,
"tableName": str,
"numberOfPeople": number,
Response
body:
JSON
"tableId": str
POST /order
Request
body:
JSON
"restaurantId": str,
"tableId": str,
"orderNumber": int,
"audioIpfsHash": str,
"transcription": str,
"keyWords": [str, ...],
"orders": [
{
"name": str (ex. nacho),
"quantity": int,
"price": double
},
...
]
Response
body:
JSON
"orderId": str
GET /restaurant/:restaurant_id
Response
Status: 200
body:
JSON
"name": str
"tables": [
{
"tableNumber": str,
"numberOfPeople": int,
}, ...
]
GET /table/:table_id
Response
Status: 200
body:
JSON
"tableNumber": str,
"numberOfPeople": int,
"totalBills": double,
"orders": [
{
name: int,
quantity: int,
price: double,
}, ...
"audioIpfsHash": [
str,
]
]