halo
  1. CategoryV1alpha1Public
halo
public
  • all
  • console
  • extension
  • public
  • uc
  • CategoryV1alpha1Public
    • queryCategories
      GET
    • queryCategoryByName
      GET
    • queryPostsByCategoryName
      GET
  • PostV1alpha1Public
    • queryPosts
      GET
    • queryPostByName
      GET
    • queryPostNavigationByName
      GET
  • SinglePageV1alpha1Public
    • querySinglePages
      GET
    • querySinglePageByName
      GET
  • TagV1alpha1Public
    • queryTags
      GET
    • queryTagByName
      GET
    • queryPostsByTagName
      GET
  • CommentV1alpha1Public
    • ListComments_1
      GET
    • CreateComment_1
      POST
    • GetComment
      GET
    • ListCommentReplies
      GET
    • CreateReply_1
      POST
  • IndexV1alpha1Public
    • IndicesSearch
      POST
  • MenuV1alpha1Public
    • queryPrimaryMenu
      GET
    • queryMenuByName
      GET
  • SystemV1alpha1Public
    • queryStats
      GET
  • MetricsV1alpha1Public
    • count
      POST
    • downvote
      POST
    • upvote
      POST
  • NotificationV1alpha1Public
    • Unsubscribe
  • PluginV1alpha1Public
    • queryPluginAvailableByName
  • ThumbnailV1alpha1Public
    • GetThumbnailByUri
  1. CategoryV1alpha1Public

queryCategories

GET
/apis/api.content.halo.run/v1alpha1/categories
Lists categories.

请求参数

Query 参数

Header 参数

请求示例代码

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://192.168.80.101:8090/apis/api.content.halo.run/v1alpha1/categories' \
--header 'Authorization: {{authorization}}'

返回响应

🟢200成功
*/*
default response
Body

示例
{
    "first": true,
    "hasNext": true,
    "hasPrevious": true,
    "items": [
        {
            "metadata": {
                "annotations": {
                    "property1": "string",
                    "property2": "string"
                },
                "creationTimestamp": "2019-08-24T14:15:22Z",
                "deletionTimestamp": "2019-08-24T14:15:22Z",
                "finalizers": [
                    "string"
                ],
                "generateName": "string",
                "labels": {
                    "property1": "string",
                    "property2": "string"
                },
                "name": "string",
                "version": 0
            },
            "postCount": 0,
            "spec": {
                "children": [
                    "string"
                ],
                "cover": "string",
                "description": "string",
                "displayName": "string",
                "hideFromList": true,
                "postTemplate": "string",
                "preventParentPostCascadeQuery": true,
                "priority": 0,
                "slug": "string",
                "template": "string"
            },
            "status": {
                "permalink": "string",
                "postCount": 0,
                "visiblePostCount": 0
            }
        }
    ],
    "last": true,
    "page": 0,
    "size": 0,
    "total": 0,
    "totalPages": 0
}
修改于 2025-09-17 17:13:00
下一页
queryCategoryByName
Built with