1. 文章
Blog-System
  • 认证
    • 用户注册
      POST
    • 用户登录
      POST
  • 文章
    • 获取文章列表
      GET
    • 创建文章
      POST
    • 获取文章详情
      GET
    • 更新文章
      PUT
    • 删除文章
      DELETE
    • 点赞/取消点赞文章
      POST
  • 评论
    • 获取评论列表
      GET
    • 创建评论
      POST
    • 回复评论
      POST
    • 点赞/取消点赞评论
      POST
  • 分类
    • 获取分类列表
      GET
    • 创建分类
      POST
  • 标签
    • 获取标签列表
      GET
    • 创建标签
      POST
  • 文件上传
    • 上传图片
      POST
  • 个人资料
    • 获取个人信息
      GET
    • 更新个人信息
      PUT
  • 管理员
    • 获取系统统计
      GET
    • 获取操作日志
      GET
  • 监控
    • 提交错误报告
  • 数据模型
    • Schemas
      • ApiResponse
      • ErrorResponse
      • User
      • Article
      • Category
      • Tag
      • Comment
      • PaginationResponse
      • RegisterRequest
      • LoginRequest
      • AuthResponse
      • CreateArticleRequest
      • CreateCategoryRequest
      • CreateTagRequest
      • UploadResponse
  1. 文章

获取文章列表

GET
/articles
获取文章列表,支持分页、搜索、筛选

请求参数

Query 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/articles?page=undefined&limit=undefined&search=undefined&category=undefined&tag=undefined&status=undefined' \
--header 'Authorization: Bearer <token>'

返回响应

🟢200成功
application/json
获取成功
Bodyapplication/json

示例
{
    "success": true,
    "message": "string",
    "data": {
        "articles": [
            {
                "id": 0,
                "title": "string",
                "content": "string",
                "summary": "string",
                "author_id": 0,
                "author_name": "string",
                "category_id": 0,
                "category_name": "string",
                "status": "draft",
                "views": 0,
                "likes": 0,
                "comments_count": 0,
                "cover_image": "string",
                "tags": [
                    {
                        "id": 0,
                        "name": "string",
                        "color": "string",
                        "article_count": 0,
                        "created_at": "2019-08-24T14:15:22.123Z"
                    }
                ],
                "created_at": "2019-08-24T14:15:22.123Z",
                "updated_at": "2019-08-24T14:15:22.123Z"
            }
        ],
        "pagination": {
            "page": 0,
            "limit": 0,
            "total": 0,
            "totalPages": 0
        }
    },
    "timestamp": "2019-08-24T14:15:22.123Z"
}
修改于 2025-09-22 23:36:20
上一页
用户登录
下一页
创建文章
Built with