halo
    halo
    CommentV1alpha1
    • all
    • console
    • extension
    • public
    • uc
    • AnnotationSettingV1alpha1
    • ConfigMapV1alpha1
    • MenuItemV1alpha1
    • MenuV1alpha1
    • RoleBindingV1alpha1
    • RoleV1alpha1
    • SecretV1alpha1
    • SettingV1alpha1
    • UserV1alpha1
    • AttachmentV1alpha1Console
    • AuthProviderV1alpha1Console
    • CommentV1alpha1Console
    • IndicesV1alpha1Console
    • NotifierV1alpha1Console
    • PluginV1alpha1Console
    • PostV1alpha1Console
    • ReplyV1alpha1Console
    • SinglePageV1alpha1Console
    • SystemV1alpha1Console
    • TagV1alpha1Console
    • ThemeV1alpha1Console
    • UserV1alpha1Console
    • CategoryV1alpha1Public
    • PostV1alpha1Public
    • SinglePageV1alpha1Public
    • TagV1alpha1Public
    • CommentV1alpha1Public
    • IndexV1alpha1Public
    • MenuV1alpha1Public
    • SystemV1alpha1Public
    • MetricsV1alpha1Public
    • NotifierV1alpha1Uc
    • NotificationV1alpha1Public
    • NotificationV1alpha1Uc
    • PluginV1alpha1Public
    • ThumbnailV1alpha1Public
    • AuthProviderV1alpha1
    • UserConnectionV1alpha1
    • SystemConfigV1alpha1Console
    • MigrationV1alpha1Console
    • PolicyAlpha1Console
    • CategoryV1alpha1
    • CommentV1alpha1
    • PostV1alpha1
    • ReplyV1alpha1
    • SinglePageV1alpha1
    • SnapshotV1alpha1
    • TagV1alpha1
    • CounterV1alpha1
    • BackupV1alpha1
    • NotificationV1alpha1
    • NotificationTemplateV1alpha1
    • NotifierDescriptorV1alpha1
    • ReasonV1alpha1
    • ReasonTypeV1alpha1
    • SubscriptionV1alpha1
    • ExtensionDefinitionV1alpha1
    • ExtensionPointDefinitionV1alpha1
    • PluginV1alpha1
    • ReverseProxyV1alpha1
    • DeviceV1alpha1
    • PersonalAccessTokenV1alpha1
    • RememberMeTokenV1alpha1
    • AttachmentV1alpha1
    • GroupV1alpha1
    • LocalThumbnailV1alpha1
    • PolicyV1alpha1
    • PolicyTemplateV1alpha1
    • ThumbnailV1alpha1
    • ThemeV1alpha1
    • UserConnectionV1alpha1Uc
    • PostV1alpha1Uc
    • SnapshotV1alpha1Uc
    • UserPreferenceV1alpha1Uc
    • TwoFactorAuthV1alpha1Uc
    • DeviceV1alpha1Uc
    • PersonalAccessTokenV1alpha1Uc
    • AttachmentV1alpha1Uc
    • listComment
      GET
    • createComment
      POST
    • deleteComment
      DELETE
    • getComment
      GET
    • patchComment
      PATCH
    • updateComment
      PUT

      createComment

      POST
      /apis/content.halo.run/v1alpha1/comments
      Create Comment

      请求参数

      Header 参数

      Body 参数application/json

      示例
      {
          "apiVersion": "string",
          "kind": "string",
          "metadata": {
              "annotations": {
                  "property1": "string",
                  "property2": "string"
              },
              "creationTimestamp": "2019-08-24T14:15:22.123Z",
              "deletionTimestamp": "2019-08-24T14:15:22.123Z",
              "finalizers": [
                  "string"
              ],
              "generateName": "string",
              "labels": {
                  "property1": "string",
                  "property2": "string"
              },
              "name": "string",
              "version": 0
          },
          "spec": {
              "allowNotification": true,
              "approved": false,
              "approvedTime": "2019-08-24T14:15:22.123Z",
              "content": "string",
              "creationTime": "2019-08-24T14:15:22.123Z",
              "hidden": false,
              "ipAddress": "string",
              "lastReadTime": "2019-08-24T14:15:22.123Z",
              "owner": {
                  "annotations": {
                      "property1": "string",
                      "property2": "string"
                  },
                  "displayName": "string",
                  "kind": "string",
                  "name": "string"
              },
              "priority": 0,
              "raw": "string",
              "subjectRef": {
                  "group": "string",
                  "kind": "string",
                  "name": "string",
                  "version": "string"
              },
              "top": false,
              "userAgent": "string"
          },
          "status": {
              "hasNewReply": true,
              "lastReplyTime": "2019-08-24T14:15:22.123Z",
              "observedVersion": 0,
              "replyCount": 0,
              "unreadReplyCount": 0,
              "visibleReplyCount": 0
          }
      }

      请求示例代码

      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://192.168.80.101:8090/apis/content.halo.run/v1alpha1/comments' \
      --header 'Authorization: {{authorization}}' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "apiVersion": "string",
          "kind": "string",
          "metadata": {
              "annotations": {
                  "property1": "string",
                  "property2": "string"
              },
              "creationTimestamp": "2019-08-24T14:15:22.123Z",
              "deletionTimestamp": "2019-08-24T14:15:22.123Z",
              "finalizers": [
                  "string"
              ],
              "generateName": "string",
              "labels": {
                  "property1": "string",
                  "property2": "string"
              },
              "name": "string",
              "version": 0
          },
          "spec": {
              "allowNotification": true,
              "approved": false,
              "approvedTime": "2019-08-24T14:15:22.123Z",
              "content": "string",
              "creationTime": "2019-08-24T14:15:22.123Z",
              "hidden": false,
              "ipAddress": "string",
              "lastReadTime": "2019-08-24T14:15:22.123Z",
              "owner": {
                  "annotations": {
                      "property1": "string",
                      "property2": "string"
                  },
                  "displayName": "string",
                  "kind": "string",
                  "name": "string"
              },
              "priority": 0,
              "raw": "string",
              "subjectRef": {
                  "group": "string",
                  "kind": "string",
                  "name": "string",
                  "version": "string"
              },
              "top": false,
              "userAgent": "string"
          },
          "status": {
              "hasNewReply": true,
              "lastReplyTime": "2019-08-24T14:15:22.123Z",
              "observedVersion": 0,
              "replyCount": 0,
              "unreadReplyCount": 0,
              "visibleReplyCount": 0
          }
      }'

      返回响应

      🟢200成功
      */*
      Response comments created just now
      Body

      示例
      {
          "apiVersion": "string",
          "kind": "string",
          "metadata": {
              "annotations": {
                  "property1": "string",
                  "property2": "string"
              },
              "creationTimestamp": "2019-08-24T14:15:22.123Z",
              "deletionTimestamp": "2019-08-24T14:15:22.123Z",
              "finalizers": [
                  "string"
              ],
              "generateName": "string",
              "labels": {
                  "property1": "string",
                  "property2": "string"
              },
              "name": "string",
              "version": 0
          },
          "spec": {
              "allowNotification": true,
              "approved": false,
              "approvedTime": "2019-08-24T14:15:22.123Z",
              "content": "string",
              "creationTime": "2019-08-24T14:15:22.123Z",
              "hidden": false,
              "ipAddress": "string",
              "lastReadTime": "2019-08-24T14:15:22.123Z",
              "owner": {
                  "annotations": {
                      "property1": "string",
                      "property2": "string"
                  },
                  "displayName": "string",
                  "kind": "string",
                  "name": "string"
              },
              "priority": 0,
              "raw": "string",
              "subjectRef": {
                  "group": "string",
                  "kind": "string",
                  "name": "string",
                  "version": "string"
              },
              "top": false,
              "userAgent": "string"
          },
          "status": {
              "hasNewReply": true,
              "lastReplyTime": "2019-08-24T14:15:22.123Z",
              "observedVersion": 0,
              "replyCount": 0,
              "unreadReplyCount": 0,
              "visibleReplyCount": 0
          }
      }
      修改于 2025-12-25 06:29:37
      上一页
      listComment
      下一页
      deleteComment
      Built with