注意:测试接口请先自己装本项目启动起来,否则下面示例链接点了会报错
-
token 必填, 用户令牌
-
title 话题标题
-
content 话题内容
-
tab 版块
-
editor 可选, 使用的编辑器, markdown wangeditor, 默认markdown
示例返回值
{
"code": 200,
"description": "success",
"detail":{
"id": 4,
"tab": "问答",
"title": "hello world",
"content": null,
"inTime": "2017-03-15 09:17:33",
"modifyTime": null,
"top": false,
"good": false,
"view": 0,
"replyCount": 0,
"upIds": null,
"editor": "markdown",
"lock": false
}
}
-
token 必填, 用户令牌
-
content 回复内容
-
topicId 回复话题的ID
-
editor 可选, 使用的编辑器, markdown wangeditor, 默认markdown
示例返回值
{
"code": 200,
"description": "success",
"detail": null
}
-
token 必填, 用户令牌
示例返回值
{
"code": 200,
"description": "success",
"detail": 0
}
示例: /api/user/tomoya