JSON格式
Name | Type | Read-only | Comment |
---|
id | integer | yes | 文档id,由系统自动分配 |
url | string | yes | 资源url |
forum_id | integer | no | 该文档所属的文档分类id |
forum_name | string | no | 该文档所属的文档分类名称 |
title | string | no | 文档名称 |
content | string | no | 文档内容 |
author_id | integer | no | 文档创建者id |
author_name | string | yes | 文档创建者名称 |
disable_comments | boolean | no | 是否关闭评论 |
count_comments | integer | yes | 评论数目 |
count_vote | integer | yes | 点赞数目 |
count_view | integer | yes | 浏览次数 |
is_home | boolean | no | 是否推荐显示 |
is_highlight | boolean | no | 是否高亮 |
is_top | boolean | no | 是否置顶 |
is_draft | boolean | no | 是否为草稿 |
is_dashboard | boolean | no | 是否在控制台首页显示 |
sort | integer | no | 文档所在当前分类下的排序号,按倒序排列 |
created_at | date | no | 创建时间 |
updated_at | date | yes | 最后更新时间 |
tags | array | no | 标签数组 |
uploads | array | yes | 文档所带的附件,请参照 Attachments API |
JSON 示例
{
"id": 421,
"url": "https://support.kf5.com/apiv2/posts/129.json",
"forum_id": 438,
"title": "代理指南样本的测试",
"content": "这些是此章节可以涵盖的指南,以帮助代理解决工单。",
"author_id": 915,
"disable_comments": false,
"count_comments": 5,
"count_vote": 3,
"count_view": 299,
"is_home": true,
"is_highlight": true,
"is_top": true,
"is_draft": false,
"is_dashboard": false,
"created_at": "2012-08-10 14:50:13",
"updated_at": "2012-08-10 14:50:13",
"tags": ["tag1","tag2"],
"uploads": [
{
"id": 2131,
"url": "https://support.kf5.com/apiv2/attachments/2131.json",
"name": "shuimu.jpg",
"size": 775702,
"content_url": "https://support.kf5.com/attachments/download/2131/00154f57388ef86589b76a23d30cd7f/",
"token": "00154f57388ef86589b76a23d30cd7f"
}
]
}