- 🦊一分钟,了解 Apifox !
- 极客空间
获取文章详情(前台)
开发中
GET
/api/web/article/detail/{id}
文章(前台)
请求参数
Path 参数
id
string
必需
Header 参数
Authorization
string
携带token
示例代码
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/api/web/article/detail/' \
--header 'Authorization;'
返回响应
🟢200成功
application/json
Body
code
integer
响应码
message
string
响应信息
data
object (article)
必需
title
string
文章标题
content
string
文章内容
categoryID
string
文章分类ID
tags
array[object (tags) {5}]
文章标签ID
desc
string
文章描述
cover
string
文章封面
authorID
string
作者ID
isPublish
boolean
是否发布
isTop
boolean
是否置顶
isOriginal
boolean
是否原创
viewNum
integer
阅读量
createTime
string
创建时间
updateTime
string
更新时间
isDelete
boolean
是否删除
likeNum
integer
点赞数
aboutInfo
object
必需
total
integer
必需
示例
{
"code": 200,
"message": "获取成功",
"data": {
"title": "身最图上",
"content": "fugiat sit consectetur irure dolore",
"categoryID": "49",
"tags": [
{
"name": "间各便线习",
"icon": "http://dummyimage.com/100x100",
"desc": "voluptate esse Excepteur sint",
"createTime": {},
"updateTime": {}
}
],
"desc": "do in nisi",
"cover": "incididunt dolor",
"authorID": "42",
"isPublish": true,
"isTop": false,
"isOriginal": false,
"viewNum": 92,
"createTime": "1994-06-22 20:40:29",
"updateTime": "1997-02-21 19:01:38",
"isDelete": false,
"likeNum": 76,
"aboutInfo": {}
},
"total": 10
}
修改于 2024-07-31 08:01:45