此API参考是按资源类型组织的。每种资源类型都有一个或多个数据表示形式和一个或多个方法。
资源类型
Comment
有关“Comment”的详细信息,请参见资源表示页面。
Method | HTTP request | Description |
---|---|---|
create | POST /api/activity/comment/ | 创建评论 |
update | PATCH /api/activity/comment/{id}/ | 更新评论内容 |
delete | DELETE /api/activity/comment/{id}/ | 删除评论 |
commentList | GET /api/activity/comment/comment-list/ | 返回指定对象的评论列表。 |
reply | POST /api/activity/comment/{id}/reply/ | 回复评论 |
comment count | GET /api/activity/comment/comment_count/ | 根据过滤条件查询评论数。 |
Like
有关“Like”的详细信息,请参见资源表示页面。
Method | HTTP request | Description |
---|---|---|
like | POST /api/activity/like/ | 点赞/取消点赞 |
list | GET /api/activity/like/ | 返回指定对象的点赞列表。 |
filter-liked | GET /api/activity/like/filter-liked/ | 返回输入的点赞对象中被当前用户点赞的部分。 |
Enums
Comment.TargetType
enum TargetType {
Order = 0,
Career = 100,
Education = 200,
FileX_Event = 300,
Dimzou_Reword = 400,
Dimzou_Publication = 500,
}
Like.TargetType
enum TargetType {
FileX_Event = 0,
Dimzou_Reword = 100,
Dimzou_Publication = 200,
}