Create Restaurant

POST /restaurant

Request

body:

JSON

"name": str

Response

Status: 200

body:

JSON

"restaurantId": str

Create Table in Rest

POST /table

Request

body:

JSON

"restaurantId": str,
"tableName": str,
"numberOfPeople": number,

Response

body:

JSON

"tableId": str

Create Order in Table

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

Read Restaurant

GET /restaurant/:restaurant_id

Response

Status: 200

body:

JSON

"name": str
"tables": [
	{
		"tableNumber": str,
		"numberOfPeople": int,
	}, ...
]

Read Table

GET /table/:table_id

Response

Status: 200

body:

JSON

"tableNumber": str,
"numberOfPeople": int,
"totalBills": double,
"orders": [
	{
		name: int,
		quantity: int,
		price: double,
	}, ...
	"audioIpfsHash": [
		str,
	]
]