文档
测试

获取文章列表

GET
articles

接口描述

获取文章列表

请求参数

参数名
类型
描述
必填
category
string
文章栏目ID (如果包含is_top,则不需要包含category参数)
必填
limit
int
分页查询记录数量(可选),默认100
必填
offset
int
分页起始记录相对(总的记录数)位置
必填
is_top
boolean
true获取应急百科置顶的文章。
必填

响应参数

参数名
类型
描述
必填
count
int
记录总数
必填
previous
string
前一分页链接
必填
next
string
后一个分页链接
必填
results
array
分页文章列表
必填
id
int
文章ID
必填
title
string
文章标题
必填
abstract
string
文章简介
必填
thumbnail
string
缩略图
必填
read_count
int
阅读量 示例:0
必填
like_count
int
点赞数量
必填
category
int
类别
必填
created_at
string
创建时间 示例:2020-08-09T02:24:40.494836+08:00
必填

说明 / 示例

根据文章栏目ID返回对于栏目的文章列表。如果没有指定 category参数,则返回全部栏目文章。 支持分页信息 ```json { "count": 2, "next": "http://acmall.hailiyingjizx.com/api/articles?limit=1&offset=1", "previous": null, "results":[ { "id": 1, "title": "突发!黎巴嫩首都爆炸已致78死4000伤,官方证实2700余吨硝酸铵爆炸", "abstract": "这是简介", "thumbnail": "http://mp.nsw888.com/xSource/NS115845111/20200805165252_1240.jpg", "read_count": 5, "like_count": 2 "created_at": "2020-08-09T02:24:40.494836+08:00", "category": 3 } ] } ```