- 用户接口
- 关注分组
- 发帖管理接口
- 分区接口
- 评论接口
- 评论回复接口
- 收藏接口
- 点赞接口
- 搜索及统计相关接口
- ws接口
回复评论
开发中
POST
/commentReply/insertCommentReply
最后修改时间:2022-02-28 08:57:54
责任人:1504784759
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
comment_id
integer
被回复的评论id
comment_reply_id
integer
回复目标id(回复评论时没有目标)
comment_reply_content
string
回复内容
to_user_id
integer
被回复的用户
示例
{
"comment_id": 1,
"comment_reply_id": 1,
"comment_reply_content": "you are right!",
"to_user_id": 2
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://cosine.ren:8000/commentReply/insertCommentReply' \
--header 'Content-Type: application/json' \
--data-raw '{
"comment_id": 1,
"comment_reply_id": 1,
"comment_reply_content": "you are right!",
"to_user_id": 2
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
示例
{
"code": 0,
"message": "string"
}
修改于 2022-02-28 08:57:54