- 用户接口
- 关注分组
- 发帖管理接口
- 分区接口
- 评论接口
- 评论回复接口
- 收藏接口
- 点赞接口
- 搜索及统计相关接口
- ws接口
获取文章收藏数
测试中
GET
/collections/count
最后修改时间:2022-03-06 14:22:25
责任人:cosine_yu
请求参数
Query 参数
article_id
integer
文章ID
示例值:
1
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://cosine.ren:8000/collections/count?article_id=1'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
result
object
必需
article_id
integer
必需
cnt
integer
必需
示例
{
"code": 0,
"message": "获取收藏数成功!",
"result": {
"article_id": "2",
"cnt": 1
}
}
🟠404文章不存在
修改于 2022-03-06 14:22:25