添加评论
描述
对某条数据添加评论。
访问地址
http://api.weTool.im/api/v1/comment/add
访问方式
POST
参数
参数名 | 数据类型 | 是否必须 | 示例值 | 默认值 | 描述 |
form_id | String | 是 | 55afcbc9ba875d5d6e445988 | 表单ID | |
entry_id | String | 是 | 558226580cf22a4f82d7b49a | 数据ID | |
comment | String | 是 | 这里是评论内容 | 评论内容 | |
comment_name | String | 是 | 张三 | 发表评论人的姓名 |
返回值
参数名 | 描述 |
status | 执行状态。"success"表示成功,"error"表示失败 |
message | 如果失败,用此字段描述失败原因。如果成功,此字段为空。 |
comment_id | 评论ID |
返回示例
{"comment_id":"55affa6a2e8fe3f27e969429","status":"success"}
curl示例
curl -u 51470abd078d49c496fda859:eWfALrToAuQvo47zDYFfaRxTVaeNsEIL
--header "Content-Type:application/json" -d "{\"form_id\":\"55afcbc9ba875d5d6e445988\",
\"entry_id\":\"55afebb42e8f8f0998d4c463\",\"comment\":\"评论内容\",\"comment_name\":\"张三\"}"
--url http://api.weTool.im/api/v1/comment/add