添加日记
开发中
POST
http://localhost:8098/admin/diary
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
content
string
日记内容
示例
{
"content": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8098/admin/diary' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
errMsg
null
必需
data
object
必需
diaryId
integer
日记 ID
content
string
日记内容
html
string
日记 HTML
createTime
integer
创建时间戳
lastModifyTime
number | null
最后修改时间戳
示例
{
"code": 200,
"errMsg": null,
"data": {
"diaryId": 3,
"content": "veniam consequat do",
"html": "<p>veniam consequat do</p>\n",
"createTime": 1711534103844,
"lastModifyTime": null
}
}
修改于 2024-03-27 10:07:19