fourm.zhengxinonly.com
  1. 论坛首页
fourm.zhengxinonly.com
  • 注册登录
    • 注册用户
      GET
    • 获取图片验证码
      GET
    • 获取短信验证码
      POST
    • 注册用户
      POST
    • 登录
      GET
    • 登陆用户
      POST
    • 退出用户
      POST
  • 论坛首页
    • 首页展示
      GET
    • 文章详情页
      GET
    • 收藏文章(接口)
      POST
    • 评论文章(接口)
      POST
    • 评论点赞(接口)
      POST
    • 关注用户(接口)
      POST
  • 个人中心
    • 用户信息修改
      GET
    • 用户信息修改
      POST
    • 户头像上传
      GET
    • 户头像上传
      POST
    • 用户密码修改
      POST
    • 我的关注列表
      GET
    • 我的文章收藏
      GET
    • 我的文章列表
      GET
    • 文章发布
      GET
    • 文章发布
      POST
    • 用户展示页
      GET
  • 后台管理
    • 后台首页
      GET
    • 管理员登陆
      GET
    • 管理员登陆
      POST
    • 管理员退出
      POST
    • 用户列表
      GET
    • 用户列表(接口)
      GET
    • 请求用户信息(接口)
      GET
    • 用户列表(接口)
      POST
    • 修改用户(接口)
      PUT
    • 删除用户(接口)
      DELETE
    • 文章管理
      GET
    • 文章管理(接口)
      GET
    • 获取文章(接口)
      GET
    • 文章修改(接口)
      POST
    • 文章编辑
      GET
    • 文章审核管理
      GET
    • 文章审核
      GET
    • 文章分类管理
      GET
    • 文章分类管理(接口)
      GET
    • 文章分类管理-新增(接口)
      POST
    • 文章分类管理-删除(接口)
      DELETE
    • 文章分类管理-编辑(接口)
      POST
    • 用户统计
      GET
  1. 论坛首页

收藏文章(接口)

开发中
POST
/article/article_collect

请求参数

Query 参数
action
string 
收藏与取消收藏
可选
示例值:
collect,cancel_collect
Body 参数application/json
article_id
string 
文章 id
必需
action
string 
必需
collect 收藏 cancel_collect 取消收藏
示例
{
  "article_id": "string",
  "action": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/article/article_collect' \
--header 'Content-Type: application/json' \
--data-raw '{
    "article_id": "string",
    "action": "string"
}'

返回响应

🟢200成功
application/json
Body
status
string 
必需
message
string 
必需
code
string 
必需
4101 用户登录之后才能收藏
4102 接口参数传递错误
0 收藏文章成功 | 取消收藏成功
示例
{
  "status": "string",
  "message": "string",
  "code": "string"
}
上一页
文章详情页
下一页
评论文章(接口)
Built with