Repository navigation
COLLECTION OF GET
Supass Ph edited this page Mar 4, 2024
·
1 revision
- response
{
"uinfo": {
"id": "181ab56c-d1a3-11ee-9e18-0242ac120002",
"email": "admin@admin",
"role": "staff",
"name": "boszz",
"lastname": "kk",
"tel": null,
"active": "1"
},
"latest_insert_bill_id":5
}- response
{
"data": [
{
"role": "customer",
"id": "b5a54cdf-d65a-11ee-809e-0242ac120002",
"email": "test@supass.github.io",
"password": "123456",
"name": "sooksan",
"lastname": "stat",
"tel": "0123456789",
"active": "1",
"role_desc": "ลูกค้า"
},
{
"role": "customer",
"id": "6a23d228-d65e-11ee-809e-0242ac120002",
"email": "test@supass.github.io0",
"password": "123456",
"name": "sooksan",
"lastname": "stattt",
"tel": "0123456789",
"active": "0",
"role_desc": "ลูกค้า"
}
],
"limit": "2"
}- response
{
"data": [
{
"table_id": "1",
"table_type": "1person",
"position_x": "15",
"position_y": null,
"priority": null,
"table_status": null,
"id": "2f7b0267-d47d-11ee-a6e5-0242ac120002",
"note": "test",
"receive_id": "2f7b0267-d47d-11ee-a6e5-0242ac120002",
"timestamp": "2024-03-02 18:18:00",
"start_date": "2024-03-02 18:00:31",
"end_date": "2024-03-02 18:00:31",
"order_status": "success",
"email": "65070242@kmitl.ac.th",
"password": null,
"role": "customer",
"name": "Supaschai",
"lastname": "Photichai",
"tel": null,
"active": "1"
},
{
"table_id": "1",
"table_type": "1person",
"position_x": "15",
"position_y": null,
"priority": null,
"table_status": null,
"id": "2f7b0267-d47d-11ee-a6e5-0242ac120002",
"note": "test2",
"receive_id": "2f7b0267-d47d-11ee-a6e5-0242ac120002",
"timestamp": "2024-03-02 18:03:50",
"start_date": "2024-03-02 18:00:31",
"end_date": "2024-03-02 18:00:31",
"order_status": null,
"email": "65070242@kmitl.ac.th",
"password": null,
"role": "customer",
"name": "Supaschai",
"lastname": "Photichai",
"tel": null,
"active": "1"
}
],
"limit": "2"
}- response
{
"data": [
{
"table_type": "1person",
"no_can_receive": "1",
"time_limit": "0"
}
],
"limit": "1"
}- response
{
"data": [
{
"id": "1",
"table_id": "1",
"note": "test",
"receive_id": "2f7b0267-d47d-11ee-a6e5-0242ac120002",
"timestamp": "2024-03-02 18:18:00",
"start_date": "2024-03-02 18:00:31",
"end_date": "2024-03-02 18:00:31",
"order_status": "success"
},
{
"id": "2",
"table_id": "1",
"note": "test2",
"receive_id": "2f7b0267-d47d-11ee-a6e5-0242ac120002",
"timestamp": "2024-03-02 18:03:50",
"start_date": "2024-03-02 18:00:31",
"end_date": "2024-03-02 18:00:31",
"order_status": null
}
],
"limit": "2"
}- response
[
{
"role": "customer",
"role_desc": "ลูกค้า"
},
{
"role": "staff",
"role_desc": "staffstaffstaffstaffstaff"
}
]- response
{
"data": [
{
"id": "1",
"table_id": "1",
"description": null,
"status": "in progress",
"waiter_id": null,
"waiter_name": null,
"waiter_lastname": null,
"order_by": null,
"order_by_name": null,
"order_by_lastname": null,
"price": null,
"date": "2024-03-03 03:38:41",
"time_stamp": "2024-03-03 03:38:41",
"discount": "0"
},
{
"id": "2",
"table_id": "1",
"description": null,
"status": "in progress",
"waiter_id": null,
"waiter_name": null,
"waiter_lastname": null,
"order_by": null,
"order_by_name": null,
"order_by_lastname": null,
"price": null,
"date": "2024-03-03 09:45:01",
"time_stamp": "2024-03-03 09:45:01",
"discount": "0"
},
{
"id": "3",
"table_id": "1",
"description": null,
"status": "in progress",
"waiter_id": null,
"waiter_name": null,
"waiter_lastname": null,
"order_by": null,
"order_by_name": null,
"order_by_lastname": null,
"price": null,
"date": "2024-03-03 09:45:55",
"time_stamp": "2024-03-03 09:45:55",
"discount": "0"
}
],
"limit": "3"
}- response
{
"data": [
{
"menu_id": "2",
"id": "1",
"order_bill_id": "1",
"count": "2",
"menu_price": "200",
"response_by": null,
"table_id": "1",
"description": "หมูย่าง",
"status": "in progress",
"waiter_id": null,
"order_by": null,
"price": "100",
"date": "2024-03-03 03:38:41",
"time_stamp": "2024-03-03 03:38:41",
"discount": "0",
"title": "grill pork",
"last_update_date": "2024-03-03 03:58:04",
"img_url": "",
"type": "pork",
"active": "0"
},
{
"menu_id": "1",
"id": "2",
"order_bill_id": "1",
"count": "1",
"menu_price": "1",
"response_by": null,
"table_id": "1",
"description": "มันคือปลาครับ",
"status": "in progress",
"waiter_id": null,
"order_by": null,
"price": "100",
"date": "2024-03-03 03:38:41",
"time_stamp": "2024-03-03 03:38:41",
"discount": "0",
"title": "grill fish",
"last_update_date": "2024-03-03 03:57:37",
"img_url": "",
"type": "fish",
"active": "1"
},
{
"menu_id": "1",
"id": "3",
"order_bill_id": "1",
"count": "1",
"menu_price": "0",
"response_by": null,
"table_id": "1",
"description": "มันคือปลาครับ",
"status": "in progress",
"waiter_id": null,
"order_by": null,
"price": "100",
"date": "2024-03-03 03:38:41",
"time_stamp": "2024-03-03 03:38:41",
"discount": "0",
"title": "grill fish",
"last_update_date": "2024-03-03 03:57:37",
"img_url": "",
"type": "fish",
"active": "1"
},
{
"menu_id": "1",
"id": "4",
"order_bill_id": "1",
"count": "1",
"menu_price": "100",
"response_by": null,
"table_id": "1",
"description": "มันคือปลาครับ",
"status": "in progress",
"waiter_id": null,
"order_by": null,
"price": "100",
"date": "2024-03-03 03:38:41",
"time_stamp": "2024-03-03 03:38:41",
"discount": "0",
"title": "grill fish",
"last_update_date": "2024-03-03 03:57:37",
"img_url": "",
"type": "fish",
"active": "1"
}
],
"limit": "4"
}- response
{
"data": [
{
"order_status": "in progress",
"description": "อยู่ระหว่างการสั่ง",
"active": "1"
},
{
"order_status": "paid",
"description": "จ่ายเงินแล้ว",
"active": "1"
}
],
"limit": "2"
}- response
{
"data": [
{
"menu_id": "1",
"title": "grill fish",
"description": "มันคือปลาครับ",
"price": "100",
"last_update_date": "2024-03-03 03:57:37",
"img_url": "",
"type": "fish",
"active": "1"
}
],
"limit": "1"
}- response
{
"data": [
{
"id": "6a23d228-d65e-11ee-809e-0242ac120002",
"e_name": "sooksan",
"e_lastname": "ss",
"duty": "ceo",
"address": "ss",
"start_date": "2024-03-02 06:24:41",
"end_date": null,
"salary": null,
"profile_url": null,
"email": "test@supass.github.io0",
"password": "123456",
"role": "customer",
"name": "sooksan",
"lastname": "stattt",
"tel": "0123456789",
"active": "0"
}
],
"limit": "1"
}