你好 我也在找这个方法
我参考文档目前应该是post请求
/apis/content.halo.run/v1alpha1/posts
参数不清楚是哪些 确实看的人眼花缭乱 必填参数是哪些啊?
curl -X 'POST' \
'https://demo.halo.run/apis/content.halo.run/v1alpha1/posts' \
-H 'accept: */*' \
-H 'Content-Type: */*' \
-d '{
"apiVersion": "string",
"kind": "string",
"metadata": {
"annotations": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"creationTimestamp": "2024-07-06T13:59:25.803Z",
"deletionTimestamp": "2024-07-06T13:59:25.803Z",
"finalizers": [
"string"
],
"generateName": "string",
"labels": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"name": "string",
"version": 0
},
"spec": {
"allowComment": true,
"baseSnapshot": "string",
"categories": [
"string"
],
"cover": "string",
"deleted": false,
"excerpt": {
"autoGenerate": true,
"raw": "string"
},
"headSnapshot": "string",
"htmlMetas": [
{
"additionalProp1": "string",
"additionalProp2": "RTUY",
"additionalProp3": "string"
}
],
"owner": "string",
"pinned": false,
"priority": 0,
"publish": false,
"publishTime": "2024-07-06T13:59:25.803Z",
"releaseSnapshot": "string",
"slug": "string",
"tags": [
"string"
],
"template": "string",
"title": "string",
"visible": "PUBLIC"
},
"status": {
"commentsCount": 0,
"conditions": [
{
"lastTransitionTime": "2024-07-06T13:59:25.803Z",
"message": "string",
"reason": "Y",
"status": "TRUE",
"type": "U"
}
],
"contributors": [
"string"
],
"excerpt": "string",
"hideFromList": true,
"inProgress": true,
"lastModifyTime": "2024-07-06T13:59:25.804Z",
"observedVersion": 0,
"permalink": "string",
"phase": "string"
}
}'
这些都是必填参数么