获取站点目录与文章的列表, 树状结构, 仅支持发布状态的文档。
请求方式 | 请求地址 |
GET | https://api.helplook.net/api/content/get-list |
参数
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
token | string | 是 | |
version_id | string | 否 | 版本ID,文章版本列表获取, 未传为主版本 |
响应:
{
"data": {
"list": [
{
"id": "50792", // 文章id
"string_id": "s3Enhv",
"name": "第一层栏目01",// 文章名称
"type": "1", // 文档类型: 1-栏目 2-文章
"status": "1", // 文章状态: 1-发布 2-草稿/隐藏 3-回收站
"slug": "s3Enhv", // 文档slug
"parent_id": "0", // 父级id
"icon": "", // 栏目图标
"desc": "", // 栏目/文章描述或简介
"child": [
{
"id": "50793",
"string_id": "BGqHsf",
"name": "第二层栏目",
"type": "1",
"status": "1",
"slug": "BGqHsf",
"parent_id": "50792",
"icon": "",
"desc": "",
"child": [
{
"id": "50789",
"string_id": "FnwrJa",
"name": "文章标题",
"type": "2",
"status": "1",
"slug": "123123123",
"parent_id": "50793",
"icon": "",
"desc": "",
"child": []
}
]
}
]
},
{
"id": "155676",
"string_id": "eDCO0h",
"name": "第二层栏目02",
"type": "1",
"status": "1",
"slug": "eDCO0h",
"parent_id": "0",
"icon": "",
"desc": "",
"child": [
{
"id": "155678",
"string_id": "Kt04as",
"name": "文章标题",
"type": "2",
"status": "1",
"slug": "wen-zhang-biao-ti-XqZW",
"parent_id": "155676",
"icon": "",
"desc": "",
"child": []
}
]
},
{
"id": "155677",
"string_id": "pOugVA",
"name": "文章标题",
"type": "2",
"status": "1",
"slug": "wen-zhang-biao-ti",
"parent_id": "0",
"icon": "",
"desc": "",
"child": []
}
]
},
"msg": "Success",
"code": 200
}