API 文档
餐厅菜单
从API查询和管理您的餐厅菜单。
身份验证
每个请求都必须在 Authorization 头中发送与管理员 API 密钥匹配的 Bearer 令牌。
获取API密钥.
端点
GET https://rqrcode.com/api/restaurant-menus/
示例
curl --request GET \
--url 'https://rqrcode.com/api/restaurant-menus/' \
--header 'Authorization: Bearer {api_key}'
参数
| 参数 | 详情 | 描述 |
|---|---|---|
| page |
可选
ui.admin.api_docs.common.types.整数
|
您想要获取结果的页码。默认为1。 |
| results_per_page |
可选
ui.admin.api_docs.common.types.整数
|
每页您想要的结果数量。允许值为:10, 25, 50, 100, 250, 500, 1000。默认为25。 |
响应示例
{
"data": [
{
"id": 1,
"project_id": null,
"name": "午餐菜单",
"description": "午餐菜单",
"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": "午餐菜单",
"description": "午餐菜单",
"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=晚餐菜单'
参数
| 参数 | 详情 | 描述 |
|---|---|---|
| name |
必填
ui.admin.api_docs.common.types.字符串
|
— |
| description |
可选
ui.admin.api_docs.common.types.字符串
|
— |
| project_id |
可选
ui.admin.api_docs.common.types.整数
|
— |
响应示例
{
"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=晚餐菜单'
参数
| 参数 | 详情 | 描述 |
|---|---|---|
| name |
可选
ui.admin.api_docs.common.types.字符串
|
— |
| description |
可选
ui.admin.api_docs.common.types.字符串
|
— |
| project_id |
可选
ui.admin.api_docs.common.types.整数
|
— |
响应示例
{
"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}'
参数
无附加参数。
响应示例
成功时返回空的 200 响应体。