Ghost Admin API Endpoint Builder
/install ghost-admin-api-endpoint-builder
Admin API Endpoint Testing Guide
This guide provides a comprehensive approach for developers to test newly created endpoints in Ghost's Admin API. Follow the steps below to ensure your endpoints are functioning correctly.
Instructions
- Creating a New Endpoint: If you are creating an endpoint for a new resource, start by creating a new endpoint file in
ghost/core/core/server/api/endpoints/. If the endpoint already exists, locate the corresponding file in the same directory. - Controller Object: In the endpoint file, create a controller object using the JSDoc type from
@tryghost/api-framework.Controller. Ensure it includes at least adocNameand a single endpoint definition, such asbrowse. - Adding Routes: Add the necessary routes for each endpoint to
ghost/core/core/server/web/api/endpoints/admin/routes.jsto make them accessible through the API. - Testing the Endpoint: Implement basic end-to-end API tests for the new endpoint in
ghost/core/test/e2e-api/admin. This will help verify that the endpoint functions as expected. - Running Tests: Execute the tests and iterate on your implementation until all tests pass. Use the command:
cd ghost/core && yarn test:single test/e2e-api/admin/{test-file-name}to run your specific test file.
Reference
For further details on Ghost's API framework and how to create API controllers, refer to the official documentation.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ghost-admin-api-endpoint-builder - 安装完成后,直接呼叫该 Skill 的名称或使用
/ghost-admin-api-endpoint-builder触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Ghost Admin API Endpoint Builder 是什么?
Create or extend Ghost Admin API endpoint code in the standard core structure. Use this skill for tasks that add a new endpoint file under `ghost/core/core/s... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 37 次。
如何安装 Ghost Admin API Endpoint Builder?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ghost-admin-api-endpoint-builder」即可一键安装,无需额外配置。
Ghost Admin API Endpoint Builder 是免费的吗?
是的,Ghost Admin API Endpoint Builder 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Ghost Admin API Endpoint Builder 支持哪些平台?
Ghost Admin API Endpoint Builder 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Ghost Admin API Endpoint Builder?
由 kukudadasd(@kukudadasd)开发并维护,当前版本 v1.0.0。