获取文章
GET
/papers/{id}请求参数
Path 参数
id
string
必需
示例值:
1
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
id
integer
必需
title
string
标题
intro
string
简介
content
string
EditorJS数据
create_time
string
创建时间
update_time
string
修改时间
update_user
#/definitions/37244079必需
anonymous
boolean
是否匿名
like_num
integer
点赞数
comment_num
integer
评论数
public_edit
boolean
是否公开编辑
like
boolean
是否点赞
own
boolean
是否拥有
示例
{
"id": 1,
"title": "关于BIT101",
"intro": "存在于此的缘由,以及背后的故事。",
"data": "{}",
"create_time": "2022/08/01 12:38:12",
"update_time": "2022/08/05 02:30:59",
"user": {
"id": 1,
"nickname": "范滇东",
"avatar": "https://bit101-1255944436.cos.ap-beijing.myqcloud.com/img/082b201e0f807a3986fb2667ab842c47.jpeg",
"motto": "I offer you the BITterness of a man who has looked long and long at the lonely moon🌙\n\n欢迎常来拜访ヾ(^▽^*)))",
"register_time": "2022/08/01 12:03:10",
"level": 0
},
"anonymous": false,
"like_num": 116,
"comment_num": 58,
"show": true,
"owner": "",
"share": false,
"like": false,
"own": false
}
最后修改时间: 2 年前