菜单

内容列表

下载

 

请求方式 请求地址
GET https://api.helplook.net/api/content?version_id=

 

query参数:

参数名 类型 必填 说明
version_id int 多版本站点,支持传版本id获取指定版本文章

 

CURL示例:

curl --location --request GET 'https://api.helplook.net/api/content' \
--header 'x-api-key: API KEY' \
--header 'Accept: */*' \
--header 'Connection: keep-alive'

 

响应:

{
    "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
}
上一个
内容
下一个
获取内容详情
最近修改: 2024-12-23Powered by