文档
测试

获取单篇文章

GET
http://{{host}}/API/V1/admin/articles/:id?hasArticleInfo=1

接口描述

管理员:返回这篇文章的主体内容,可使用参数返回更多信息:包括文章id 点击量,作者,分类,标题,摘要,发布日期,点击量

请求参数

参数名
类型
描述
必填
hasArticleInfo
int
示例:1
可选
id
int
示例:11
必填

响应参数

application/json
参数名
类型
描述
必填
code
int
示例:1
必填
message
string
示例:成功
必填
result
object
数据字典
必填
article
object
数据字典
必填
content
string
示例:test
必填
id
int
示例:4
必填
title
string
示例:test
必填
author
string
示例:test
必填
category_id
int
示例:1
必填
alias
string
示例:航空航天
必填
pubdate
string
示例:2021-12-13 18:09:40
必填
abstract
string
示例:test
必填
clicks
int
示例:0
必填
is_hidden
int
示例:0
必填
pictures
array
数据列表
必填

说明 / 示例

成功响应 ```js { code: 1 message: '成功', result: { article:{ article_id: 1, title: "标题", author: "作者", category_id: "1", pubdate: "2021-12-13T01:13:02.000Z", abstract: "摘要", content: "文章主体内容" is_hidden: 0 } pictures: ['cover.jpg'] } ```