查询文章列表
开发中
GET
/articles
请求参数
Query 参数
page
string
可选
示例值:
1
limit
string
可选
示例值:
10
示例代码
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://localhost:3000/articles?page=1&limit=10'
返回响应
🟢200成功
application/json
Body
status
boolean
必需
message
string
必需
data
object
必需
articles
array [object {4}]
必需
pagination
object
必需
示例
{
"status": true,
"message": "查询文章列表成功。",
"data": {
"articles": [
{
"id": 80,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题80"
},
{
"id": 79,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题79"
},
{
"id": 78,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题78"
},
{
"id": 77,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题77"
},
{
"id": 76,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题76"
},
{
"id": 75,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题75"
},
{
"id": 74,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题74"
},
{
"id": 73,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题73"
},
{
"id": 72,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题72"
},
{
"id": 71,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题71"
},
{
"id": 70,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题70"
},
{
"id": 69,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题69"
},
{
"id": 68,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题68"
},
{
"id": 67,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题67"
},
{
"id": 66,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题66"
},
{
"id": 65,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题65"
},
{
"id": 64,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题64"
},
{
"id": 63,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题63"
},
{
"id": 62,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题62"
},
{
"id": 61,
"createdAt": "2025-05-22 23:40:37",
"updatedAt": "2025-05-22 23:40:37",
"title": "文章的标题61"
}
],
"pagination": {
"currentPage": 2,
"pageSize": 20,
"total": 100
}
}
}