文档分类列表
1 功能说明
获取指定分区下所有文档分类信息
2 接口调用说明
2.1 URL
http://yourdomain.kf5.com/api/v1/forum/forum_list2.2 格式
JSON
2.3 HTTP请求方式
GET, POST
2.4 IP限制
无
2.5 输入参数说明
| 参数名称 | 是否必须 | 类型 | 描述 | 
| category_id | 是 | integer | 文档分区ID编号 | 
2.6 请求示例
http://yourdomain.kf5.com/api/v1/forum/forum_list?category_id=85&sign=12d45c66523dd069d7c64c22fea10f34
2.7 返回参数说明
| 参数名称 | 说明 | 
| err | 返回码。0:执行成功,1:有错误 | 
| msg | 如果错误,返回错误信息。 | 
| datas | 返回数据 | 
| id | 分类编号 | 
| category_id | 所属分区编号 | 
| title | 分类标题 | 
| content | 分类描述 | 
| type | 文章类型(articles,一般文档;ideas,提交建议;questions,问答) | 
2.8 正确返回示例
Content-type: text/html; charset=utf-8
{
	"err":0,
	"msg":""
	"datas":{
		"0" : {
			"id" : "418"
			"category_id" : "85"
			"title" : "公告与新闻"
			"content" : ""
			"type" : "articles"
		}
		...
	}
}2.9 错误返回示例
Content-type: text/html; charset=utf-8
{
	"err":1,
	"msg":"参数不完整"
}3 备注
无
