开放Api-商品专辑-列表
Api描述:获取商品专辑 列表
URL: /manager/api/apps/openapi/product-collection/list
格式:json
方式:get
数据请求部分
1.Request Header 参数:
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
open-access-token | 必须 | String | 在开放api插件中,创建权限后即可获取该token |
2.Request JSON Data(Body):
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
pageNum | 选填 | String | 每页的个数 |
pageSize | 选填 | String | 第x页 |
title | 选填 | String | 模糊搜索标题 |
created_at_begin | 选填 | String | 创建时间-开始 |
created_at_end | 选填 | String | 创建时间-结束 |
数据返回部分
1.Response JSON Data(Body):
格式:json
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
code | 必须 | Number | 200 代表成功 |
message | 必须 | String | 执行结果的文字描述信息 |
data | 必须 | Array | api获取的数据保存到data中 |
data > total | 必须 | string | 列表总数 |
data > pageSize | 必须 | string | 列表每页个数 |
data > totalPage | 必须 | string | 列表总页数 |
data > list | 必须 | Array | 列表信息 |
data > list > id | 必须 | int | 专辑 id |
data > list > handle | 必须 | string | 专辑url 路径 |
data > list > image | 必须 | string | 专辑图片 |
data > list > title | 必须 | string | 专辑标题 |
data > list > body_html | 必须 | string | 专辑描述 |
data > list > meta_title | 必须 | string | seo meta title |
data > list > meta_keywords | 必须 | string | seo meta keywords |
data > list > meta_description | 必须 | string | seo meta description |
data > list > created_at | 必须 | string | 创建时间 |
data > list > updated_at | 必须 | string | 更新时间 |
Response JSON Data(示例数据):
{
"code": 200,
"data": {
"list": [
{
"id": 47,
"handle": "rehair-comb",
"image": "",
"title": "ReHair Comb3",
"body_html": "<p>111111222323232311</p>",
"meta_title": "ReHair Comb3",
"meta_keywords": "",
"meta_description": "111111222323232311",
"created_at": "2023-01-10 23:25:06",
"updated_at": "2023-01-30 10:49:21"
},
{
"id": 46,
"handle": "frontpage",
"image": "",
"title": "ReHair Hair Loss Treatment",
"body_html": "",
"meta_title": "ReHair Hair Loss Treatment",
"meta_keywords": "",
"meta_description": "",
"created_at": "2023-01-10 23:24:56",
"updated_at": "2023-01-11 10:45:12"
},
{
"id": 45,
"handle": "anti-snore-solution",
"image": "",
"title": "Anti Snore Solution",
"body_html": "",
"meta_title": "Anti Snore Solution",
"meta_keywords": "",
"meta_description": "",
"created_at": "2023-01-10 23:24:53",
"updated_at": "2023-01-11 10:45:09"
},
{
"id": 44,
"handle": "kp1kjfi7pu",
"image": "/common/15/image/2022/11/11/44dc31a88ef6d578e12fb1bc5947b337.webp",
"title": "小米",
"body_html": "",
"meta_title": "小米",
"meta_keywords": "",
"meta_description": "",
"created_at": "2022-12-16 10:46:45",
"updated_at": "2022-12-16 10:46:45"
},
{
"id": 43,
"handle": "test",
"image": "/common/15/image/2022/11/11/44dc31a88ef6d578e12fb1bc5947b337.webp",
"title": "test",
"body_html": "<p>test2</p>",
"meta_title": "test",
"meta_keywords": "",
"meta_description": "test2",
"created_at": "2022-11-11 10:25:20",
"updated_at": "2022-11-11 16:47:12"
},
{
"id": 42,
"handle": "shoes",
"image": "/common/15/image/2022/11/11/4fe886630966f92fa04a49da75baffb0.png",
"title": "shoes",
"body_html": "<p>测试图片有没有显示</p>",
"meta_title": "shoes",
"meta_keywords": "",
"meta_description": "测试图片有没有显示",
"created_at": "2022-11-07 15:30:01",
"updated_at": "2022-11-11 09:13:29"
},
{
"id": 41,
"handle": "dress",
"image": "",
"title": "Dress11",
"body_html": "<p>dress</p>",
"meta_title": "Dress11",
"meta_keywords": "",
"meta_description": "dress",
"created_at": "2022-11-07 15:29:13",
"updated_at": "2022-11-29 14:29:09"
}
],
"total": 7,
"pageSize": 20,
"totalPage": 1
},
"message": "success"
}