Authorization: Bearer ********************
{
"title": "string",
"autoGenerateExcerpt": "false",
"excerpt": "string",
"slug": "string",
"allowComment": true,
"status": "PUBLISHED",
"visible": "VISIBLE",
"content": "string",
"categoryId": 0,
"tagIds": [
0
],
"cover": "string",
"pinned": "false",
"password": "string"
}
curl --location --request POST 'http://localhost:8098/admin/post' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "string",
"autoGenerateExcerpt": "false",
"excerpt": "string",
"slug": "string",
"allowComment": true,
"status": "PUBLISHED",
"visible": "VISIBLE",
"content": "string",
"categoryId": 0,
"tagIds": [
0
],
"cover": "string",
"pinned": "false",
"password": "string"
}'
{
"code": 200,
"errMsg": null,
"data": {
"postId": 4,
"title": "布速角",
"autoGenerateExcerpt": false,
"excerpt": "",
"slug": "elit laboris aliqua",
"cover": "laborum Excepteur culpa",
"allowComment": false,
"pinned": false,
"status": "PUBLISHED",
"visible": "VISIBLE",
"encrypted": false,
"password": null,
"visit": 0,
"category": {
"categoryId": 2,
"displayName": "西各特百族意实",
"slug": "reprehenderit tempor nostrud in",
"cover": "dolor eiusmod",
"unifiedCover": false,
"postCount": 1
},
"tags": [
{
"tagId": 5,
"displayName": "技区具需",
"slug": "eu%20minim",
"color": "#00F9A2",
"postCount": 1
},
{
"tagId": 6,
"displayName": "商日空表红",
"slug": "veniam id Duis commodo",
"color": "#4450Aa",
"postCount": 1
}
],
"createTime": 1709479183524,
"lastModifyTime": null
}
}