获取文章正文和草稿
开发中
GET
http://localhost:8098/admin/post/content/{postId}
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
postId
string
必需
示例代码
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:8098/admin/post/content/'
返回响应
🟢200成功
application/json
Body
code
integer
必需
errMsg
null
必需
data
array [object {5}]
必需
postContentId
integer
文章内容 ID
postId
integer
文章 ID
status
string
文章状态
draftName
string | null
草稿名(如果是草稿)
lastModifyTime
integer | null
最后修改时间戳
示例
{
"code": 200,
"errMsg": null,
"data": [
{
"postContentId": 1,
"postId": 2,
"status": "PUBLISHED",
"draftName": null,
"lastModifyTime": 1709382953842
}
]
}
修改于 2024-04-22 14:50:48