获取一个专题

接口描述:

  • 获取一个专题。

请求 URL:

  • http|https://host/api/v1/topic/method/get.topic.item/

请求方式:

  • GET
  • POST

是否授权:

  • 需要授权

业务参数:

参数名 类型 是否必须 范围值 默认值 示例值 描述
topic_id integer gt:0 27 专题编号

响应参数:

参数名 类型 是否返回 示例值 描述
status integer 200 状态码
message string success 消息信息
data object [] 返回对象
data 类型 是否返回 示例值 描述
topic_id integer 27 专题编号
title string 标题 专题标题
alias string 短标题 专题别名
content string 正文 专题内容
keywords string 关键词 专题关键词
description string 描述 专题描述
status integer 1 专题是否显示 0=否 1=是
create_time datetime 2018-05-04 09:25:34 创建时间
update_time datetime 2018-05-04 09:31:52 更新时间

响应示例:

  1. {
  2. "status": 200,
  3. "message": "success",
  4. "data": {
  5. "topic_id": 27,
  6. "title": "标题",
  7. "alias": "短标题",
  8. "content": "正文",
  9. "keywords": "关键词",
  10. "description": "描述",
  11. "status": 1,
  12. "create_time": "2018-05-04 09:25:34",
  13. "update_time": "2018-05-04 09:31:52"
  14. }
  15. }

备注: