Install
openclaw skills install ghost-admin-api-endpoint-builderCreate 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/server/api/endpoints/`, modify an existing controller with new actions or validation, register HTTP route entries in `ghost/core/core/server/web/api/endpoints/admin/routes.js`, register the endpoint module, or add matching e2e tests in `ghost/core/test/e2e-api/admin/`. Typical inputs include endpoint requirements, controller files, route files, validation schemas, module registration files, and existing test patterns; expected outputs include controller objects, route wiring, input serializers or schemas, module registration updates, and integration tests. Supported admin resources include members, posts, labels, newsletters, tiers, redirects, webhooks, snippets, and similar Ghost admin resources. Reject tasks outside this admin REST endpoint workflow, including frontend routes, database migrations, CLI commands, GraphQL APIs, WebSockets, SSE, SOAP, cron jobs, webpack/build tasks, multipart file-upload flows, or other non-REST admin patterns.
openclaw skills install ghost-admin-api-endpoint-builderThis 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.
ghost/core/core/server/api/endpoints/. If the endpoint already exists, locate the corresponding file in the same directory.@tryghost/api-framework.Controller. Ensure it includes at least a docName and a single endpoint definition, such as browse.ghost/core/core/server/web/api/endpoints/admin/routes.js to make them accessible through the API.ghost/core/test/e2e-api/admin. This will help verify that the endpoint functions as expected.cd ghost/core && yarn test:single test/e2e-api/admin/{test-file-name} to run your specific test file.For further details on Ghost's API framework and how to create API controllers, refer to the official documentation.