数据API ——查询表单数据

导航

  1. 查询单条数据
  2. 查询表单数据
  3. 查询评论
  4. 添加评论

添加评论

描述

对某条数据添加评论。

访问地址

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