菜品分类接口 ¶
菜品分类列表 ¶
查询商户菜品分类列表
请求
基本 | |
---|---|
HTTP URL | https://macromap.cxkjedu.com/api/open/category |
HTTP Method | GET |
请求头
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
Content-Type | string | 是 | 固定值:"application/json; charset=utf-8" |
open-token | string | 是 | app_api_token 示例值:"d13fc57d46bac217" 了解更多:获取访问凭证 api_token |
查询参数
该请求无请求参数
请求体
该请求无请求体
请求体示例
$ curl --location --request GET 'https://macromap.cxkjedu.com/api/open/category' \
--header 'content-type:application/json; charset=utf-8' \
--header 'open-token: d13fc57d46bac217'
响应体
名称 | 类型 | 描述 |
---|---|---|
status | string | 接口状态 SUCCESS 表示成功 |
code | int | 响应代码 200 表示成功 |
msg | string | 错误描述 |
data | data | - |
∟ id | int | 菜品分类 id |
∟ user_id | int | 商户 ID |
∟ name | string | 分类名称 |
∟ dishes_count | int | 菜品数量 |
∟ created_at | string | 创建时间 |
∟ updated_at | string | 更新时间 |
响应体示例
{
"status": "SUCCESS",
"code": 200,
"data": [
{
"id": 10,
"name": "家常菜",
"user_id": 3,
"created_at": "2022-05-22 09:34",
"updated_at": "2022-05-22 09:34",
"dishes_count": 8
}
]
}