获取-文章列表
GET
/v1_0/articles获取-文章列表
注意1: 带请求更多功能(用于做滚动触底加载更多数据效果)
注意2: 默认后台一次返回10条数据
请求参数
Query 参数
channel_id
string
必需
频道id (0是推荐频道)
示例值:
0
timestamp
string
必需
注意1: (默认传系统时间戳) 注意2: 此值需要上一次网络请求里pre_timestamp的值, 用于请求下一段数据
示例值:
1654835148606
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
object
响应数据
results
array [object {8}]
响应结果数组
pre_timestamp
string
请求下一页数据的时间戳
用于做加载更多效果
message
string
响应消息
示例
成功示例
{
"data": {
"results": [
{
"art_id": "7950",
"title": "一个很简短的 JS 生成器入门和用法参考",
"aut_id": "1111",
"comm_count": 8,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "黑马先锋",
"is_top": 0,
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/resources/images/60.jpg"
]
}
},
{
"art_id": "7947",
"title": "通过Jenkins自动构建dubbo服务时的问题汇总",
"aut_id": "1111",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "黑马先锋",
"is_top": 0,
"cover": {
"type": 3,
"images": [
"http://geek.itheima.net/resources/images/4.jpg",
"http://geek.itheima.net/resources/images/91.jpg",
"http://geek.itheima.net/resources/images/13.jpg"
]
}
},
{
"art_id": "8048",
"title": "详解动态规划01背包问题--JavaScript实现",
"aut_id": "1111",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "黑马先锋",
"is_top": 0,
"cover": {
"type": 0
}
},
{
"art_id": "5ca8bb42-ba19-4ddc-a4e3-9008eb064ab6",
"title": "demo",
"aut_id": "ffabc7ae-90d5-426c-bf49-040746948f2f",
"comm_count": 0,
"pubdate": "2022-06-10 10:26:45",
"aut_name": "13811111111",
"is_top": 0,
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/uploads/1654827989571.png"
]
}
},
{
"art_id": "8082",
"title": "react配合antd组件实现的管理系统demo",
"aut_id": "1111",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "黑马先锋",
"is_top": 0,
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/resources/images/41.jpg"
]
}
},
{
"art_id": "8022",
"title": "前端面试小记",
"aut_id": "1111",
"comm_count": 29,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "黑马先锋",
"is_top": 0,
"cover": {
"type": 0
}
},
{
"art_id": "8011",
"title": "微信小游戏好友排行榜快速开发教程",
"aut_id": "1111",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "黑马先锋",
"is_top": 0,
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/resources/images/59.jpg"
]
}
},
{
"art_id": "8106",
"title": "你应该知道的requestIdleCallback",
"aut_id": "1111",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "黑马先锋",
"is_top": 0,
"cover": {
"type": 3,
"images": [
"http://geek.itheima.net/resources/images/8.jpg",
"http://geek.itheima.net/resources/images/77.jpg",
"http://geek.itheima.net/resources/images/11.jpg"
]
}
},
{
"art_id": "8064",
"title": "基于Vue 2.0高仿 今日头条 单页应用——vue-toutiao",
"aut_id": "1111",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "黑马先锋",
"is_top": 0,
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/resources/images/81.jpg"
]
}
},
{
"art_id": "7959",
"title": "Mybatis配置文件(二)",
"aut_id": "1111",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "黑马先锋",
"is_top": 0,
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/resources/images/49.jpg"
]
}
}
],
"pre_timestamp": "1552266004767"
},
"message": "OK"
}
最后修改时间: 2 年前