Skip to content

article createComment

GoodLiang edited this page Aug 31, 2018 · 4 revisions
POST /api/articles/:id/comment

header

{
  "token": "token"
}

参数

{
  "content": "content"
}

返回

{
  "code": 1,
  "msg": "SUCCESS",
  "data":{
    "id": "id",
    "content": "content",
    "authorId": "authorId",
    "commentsId":[],
    "createAt": "2018-8-19 16:41:03",
    "updateAt": "2018-8-19 16:41:03",
    "authorUsername": "zhang",
    "authorAvatar": "26da85aa613fb648521f0bf35ed31ca5"
  }
}
Clone this wiki locally