- Proto 文件说明
- 返回码&错误码说明
- initialize 系统配置及初始化
- mall 电商微服务
- 分类相关
- 产品操作相关
- 产品规格相关
- 产品图片相关
- 产品评论相关
- 运费模板相关
- 区域限制相关
- 我的店铺POST
- 商品列表POST
- 商品搜索POST
- 商品详情POST
- 评论列表POST
- 我的店铺 CopyPOST
- 获取上游公司及其分类列表POST
- 获取上游公司产品列表POST
- order 购物车微服务
- cart 购物车
- coupon 优惠卷
- Summary 订单总览
- address 地址库
- 集采相关
- 拼单相关
- 获取一个订单的详情数据POST
- 订单列表POST
- 各类型订单数量POST
- passport 通行证微 服务
- finance 财务微服务
- market 营销微服务
- relation 社交关系微服务
- ads 广告微服务
- cloud 云存储微服务
- content 内容微服务
- location-定位服务
- MCS 即时通讯(IM)微服务
- task 任务&回调
- bases 管理类接口
- Other 其它
- fts文件传输服务
- notify通知服务(包括短信,邮件,消息等)
- license 许可证认证服务
- feedback意见反馈(工单)服务
- org 组织机构微服务
- material二维码
- invoice合同发票
获取所有分类数据
开发中
POST
/mall.Product.Category
请求参数
Header 参数
Authorization
string
可选
示例值:
YAb6b3m/PsSCMTmXqMyLHu5V4zv4CqqhxDoVzMRc1LHrA8FFjgA2pv293BRlA/aWEi/n0fedA19ZcACeMC3rvJRJ5VeBk/H/zCtMHtCYVnR2lG9qZL2K2oxtt1BNEW1dhnN6+JuVOUWBOIvAg9+mCOu3s4uA970htxCGdx+ZYPo=
Request-Id
string
请求ID
默认值:
{% mock 'uuid' %}
Content-Type
string
传输格式
默认值:
application/json
Workspace
string
项目名称
默认值:
mall
Body 参数application/json
types
string
需要的分类类型
keywords
string
可选
id
string
可选
owner_identity
string
当前组织的唯一标识
示例
{
"types": "all",
"keywords": "",
"id": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mesh.apinb.com//mall.Product.Category' \
--header 'Authorization: YAb6b3m/PsSCMTmXqMyLHu5V4zv4CqqhxDoVzMRc1LHrA8FFjgA2pv293BRlA/aWEi/n0fedA19ZcACeMC3rvJRJ5VeBk/H/zCtMHtCYVnR2lG9qZL2K2oxtt1BNEW1dhnN6+JuVOUWBOIvAg9+mCOu3s4uA970htxCGdx+ZYPo=' \
--header 'Request-Id;' \
--header 'Workspace;' \
--header 'Content-Type: application/json' \
--data-raw '{"types":"all","keywords":"","id":0}'
返回响应
🟢200成功
application/json
Body
count
integer
必需
data
array [object {12}]
必需
id
integer
必需
identity
string
唯一标识
title
string
标题
en_title
string
英文标题
parent_id
integer
父级id
paths
string
路径
intro
string
简介
icon
string
图标
status
integer
状态
created_at
string
创建时间
keys
string
关键字
categories
array [object {11}]
可选
示例
{
"count": 4,
"data": [
{
"id": 4,
"identity": "e0d6371e-b80f-4f9f-b601-545a77cb22e5",
"title": "手机",
"en_title": "",
"parent_id": 0,
"paths": "",
"intro": "",
"icon": "",
"sort": 0,
"status": 1,
"created_at": "2024-04-06 13:20:55",
"keys": ""
},
{
"id": 3,
"identity": "f30142fc-6a35-40aa-9d0c-9fe09f4103f0",
"title": "百货",
"en_title": "",
"p arent_id": 0,
"paths": "",
"intro": "",
"icon": "",
"sort": 0,
"status": 1,
"created_at": "2024-04-06 13:11:17",
"categories": [
{
"id": 5,
"identity": "3377b74c-a1c7-4caa-b136-ed13a0641edd",
"title": "扫把",
"en_title": "",
"parent_id": 3,
"paths": "",
"intro": "",
"icon": "",
"sort": 0,
"status": 1,
"created_at": "2024-04-06 14:57:07",
"keys": ""
}
],
"keys": ""
},
{
"id": 2,
"identity": "6e2f9b80-0fce-4fad-8a5c-8ed8c6f10880",
"title": "水果",
"en_title": "",
"parent_id": 0,
"paths": "",
"intro": "",
"icon": "",
"sort": 0,
"status": 1,
"created_at": "2024-04-06 13:10:38",
"keys": ""
},
{
"id": 1,
"identity": "cd3cf570-9c1e-4d46-abcf-8a5b3d286bad",
"title": "蔬菜",
"en_title": "",
"parent_id": 0,
"paths": "",
"intro": "",
"icon": "",
"sort": 0,
"status": 1,
"created_at": "2024-04-06 13:07:18",
"keys": ""
}
]
}
修改于 2024-04-08 01:16:32