跳转至

协议评论

读取或写入某个协议的评论。

GET /agreements/{agreementId}/comments

  • 鉴权:不需要
  • 响应:评论对象数组

评论字段:

  • id
  • author
  • authorAvatar
  • authorOpenId
  • content
  • createdAt

POST /agreements/{agreementId}/comments

  • 鉴权:需要登录
  • 限流:开启

请求体:

{
  "content": "Validation notes look good."
}

响应:

  • 200 OK
  • 400 Bad Request
  • 401 Unauthorized
  • 500 Internal Server Error