Menu nhà hàng
Truy vấn và quản lý menu nhà hàng của bạn từ API.
GET https://rqrcode.com/api/restaurant-menus/
curl --request GET \
--url 'https://rqrcode.com/api/restaurant-menus/' \
--header 'Authorization: Bearer {api_key}'
| Tham số | Chi tiết | Mô tả |
|---|---|---|
| page |
Tùy chọn
ui.admin.api_docs.common.types.Số nguyên
|
Số trang mà bạn muốn lấy kết quả. Mặc định là 1. |
| results_per_page |
Tùy chọn
ui.admin.api_docs.common.types.Số nguyên
|
Số kết quả bạn muốn trên mỗi trang. Giá trị được phép: 10, 25, 50, 100, 250, 500, 1000. Mặc định là 25. |
{
"data": [
{
"id": 1,
"project_id": null,
"name": "Menu bữa trưa",
"description": "Menu giữa ngày",
"datetime": "2026-04-20 07:55:48"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://rqrcode.com/api/restaurant-menus?page=1",
"last": "https://rqrcode.com/api/restaurant-menus?page=1",
"next": null,
"prev": null,
"self": "https://rqrcode.com/api/restaurant-menus?page=1"
}
}
GET https://rqrcode.com/api/restaurant-menus/{restaurant_menu_id}
curl --request GET \
--url 'https://rqrcode.com/api/restaurant-menus/{restaurant_menu_id}' \
--header 'Authorization: Bearer {api_key}'
{
"data": {
"id": 1,
"project_id": null,
"name": "Menu bữa trưa",
"description": "Menu giữa ngày",
"datetime": "2026-04-20 07:55:48"
}
}
POST https://rqrcode.com/api/restaurant-menus
curl --request POST \
--url 'https://rqrcode.com/api/restaurant-menus' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Menu bữa tối'
| Tham số | Chi tiết | Mô tả |
|---|---|---|
| name |
Bắt buộc
ui.admin.api_docs.common.types.Chuỗi
|
Không có mô tả |
| description |
Tùy chọn
ui.admin.api_docs.common.types.Chuỗi
|
Không có mô tả |
| project_id |
Tùy chọn
ui.admin.api_docs.common.types.Số nguyên
|
Không có mô tả |
{
"data": {
"id": 1
}
}
POST https://rqrcode.com/api/restaurant-menus/{restaurant_menu_id}
curl --request POST \
--url 'https://rqrcode.com/api/restaurant-menus/{restaurant_menu_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Menu bữa tối'
| Tham số | Chi tiết | Mô tả |
|---|---|---|
| name |
Tùy chọn
ui.admin.api_docs.common.types.Chuỗi
|
Không có mô tả |
| description |
Tùy chọn
ui.admin.api_docs.common.types.Chuỗi
|
Không có mô tả |
| project_id |
Tùy chọn
ui.admin.api_docs.common.types.Số nguyên
|
Không có mô tả |
{
"data": {
"id": 1
}
}
DELETE https://rqrcode.com/api/restaurant-menus/{restaurant_menu_id}
curl --request DELETE \
--url 'https://rqrcode.com/api/restaurant-menus/{restaurant_menu_id}' \
--header 'Authorization: Bearer {api_key}'
Nội dung phản hồi 200 trống khi thành công.