文档
测试

根据tag获取文章详情

GET
articles/query-article

接口描述

根据指定tag获取文章详情

请求参数

参数名
类型
描述
必填
tag
string
文章tag
必填

响应参数

参数名
类型
描述
必填
id
int
文章ID
必填
title
string
文章标题
必填
author
string
作者
必填
thumbnail
string
缩略图
必填
read_count
int
阅读量 示例:0
必填
created_at
string
创建时间 示例:2020-08-09T02:24:40.494836+08:00
必填
type
string
类型
必填
content
string
示例:黎巴嫩首都贝鲁特港口区4日傍晚发生剧烈爆炸,目前爆炸已造成78人死亡,超4000人受伤。除了已知的伤亡数字外,还有大量人员下落不明。
必填
created_at
string
示例:2020-08-09T02:24:40.494836+08:00
必填
category
int
示例:3
必填

说明 / 示例

根据指定的tag返回文章。如果没有找到对应tag的文章,则返回404 ```json { "id": 1, "title": "突发!黎巴嫩首都爆炸已致78死4000伤,官方证实2700余吨硝酸铵爆炸", "author": "青岛海丽安防", "abstract": "这是简介", "thumbnail": "http://mp.nsw888.com/xSource/NS115845111/20200805165252_1240.jpg", "read_count": 3, "like_count": 2, "created_at": "2020-08-09T02:24:40.494836+08:00", "category": 3 } ```