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

queryPostsByCategoryName

GET
/apis/api.content.halo.run/v1alpha1/categories/{name}/posts
Lists posts by category name.

请求参数

Path 参数

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//posts' \
--header 'Authorization: {{authorization}}'

返回响应

🟢200成功
*/*
default response
Body

示例
{
    "first": true,
    "hasNext": true,
    "hasPrevious": true,
    "items": [
        {
            "categories": [
                {
                    "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
                    }
                }
            ],
            "contributors": [
                {
                    "avatar": "string",
                    "bio": "string",
                    "displayName": "string",
                    "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
                    },
                    "name": "string",
                    "permalink": "string"
                }
            ],
            "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
            },
            "owner": {
                "avatar": "string",
                "bio": "string",
                "displayName": "string",
                "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
                },
                "name": "string",
                "permalink": "string"
            },
            "spec": {
                "allowComment": true,
                "baseSnapshot": "string",
                "categories": [
                    "string"
                ],
                "cover": "string",
                "deleted": false,
                "excerpt": {
                    "autoGenerate": true,
                    "raw": "string"
                },
                "headSnapshot": "string",
                "htmlMetas": [
                    {
                        "property1": "string",
                        "property2": "string"
                    }
                ],
                "owner": "string",
                "pinned": false,
                "priority": 0,
                "publish": false,
                "publishTime": "2019-08-24T14:15:22Z",
                "releaseSnapshot": "string",
                "slug": "string",
                "tags": [
                    "string"
                ],
                "template": "string",
                "title": "string",
                "visible": "PUBLIC"
            },
            "stats": {
                "comment": 0,
                "upvote": 0,
                "visit": 0
            },
            "status": {
                "commentsCount": 0,
                "conditions": [
                    {
                        "lastTransitionTime": "2019-08-24T14:15:22Z",
                        "message": "string",
                        "reason": "string",
                        "status": "TRUE",
                        "type": "string"
                    }
                ],
                "contributors": [
                    "string"
                ],
                "excerpt": "string",
                "hideFromList": true,
                "inProgress": true,
                "lastModifyTime": "2019-08-24T14:15:22Z",
                "observedVersion": 0,
                "permalink": "string",
                "phase": "string"
            },
            "tags": [
                {
                    "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": {
                        "color": "string",
                        "cover": "string",
                        "displayName": "string",
                        "slug": "string"
                    },
                    "status": {
                        "observedVersion": 0,
                        "permalink": "string",
                        "postCount": 0,
                        "visiblePostCount": 0
                    }
                }
            ]
        }
    ],
    "last": true,
    "page": 0,
    "size": 0,
    "total": 0,
    "totalPages": 0
}
修改于 2025-09-17 17:13:00
上一页
queryCategoryByName
下一页
queryPosts
Built with