菜单

获取内容详情

下载

 

请求方式 请求地址
GET https://api.helplook.net/api/content/:id

:id 文章id

 

CURL示例:

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

 

响应:

参数名  
id 文章id
string_id 文章字符串id
status 文章状态: 1-已发布(线上) 2-草稿(下线)
type
类型: 1-栏目 2-文章
id 此次问答的id(问答记录id)
name 文章/栏目名称
slug 文章的路径 https://站点域名/docs/:slug
add_time 创建时间
update_time 更新时间
content 已发布的文章内容(线上访客看到的文章内容)
draft_content

未发布或草稿内容

 

响应示例:

{
    "data": {
        "id": "8161504",
        "string_id": "vuLVJ8",
        "status": "1",
        "is_del": "0",
        "type": "2",
        "name": "新文章名",
        "slug": "11-yong-hu-xin-xi-mu-ban-s4eQ",
        "add_time": "1725517672",
        "update_time": "1734420390",
        "content": {
            "content_id": "8161504",
            "content": "<h1>hello world2</h1>",
            "pure_content": "hello world2",
            "is_draft": "0",
            "editor_type": "3",
            "file_path": "",
            "add_time": "1725517673",
            "update_time": "1734420390"
        },
        "draft_content": {
            "content_id": "8161504",
            "content": "<h1>hello world2</h1>",
            "pure_content": "hello world2",
            "is_draft": "0",
            "editor_type": "3",
            "file_path": "",
            "add_time": "1725517673",
            "update_time": "1734420390"
        }
    },
    "msg": "Success",
    "code": 200
}
上一个
内容列表
下一个
创建栏目/文章
最近修改: 2025-03-25Powered by