add-admin-api-endpoint | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / add-admin-api-endpoint

add-admin-api-endpoint

maintained by TryGhost

star 51.7k account_tree 11.3k verified_user MIT License
bolt View GitHub

name: Add Admin API Endpoint description: Add a new endpoint or endpoints to Ghost's Admin API at ghost/api/admin/**.

Create Admin API Endpoint

Instructions

  1. If creating an endpoint for an entirely new resource, create a new endpoint file in ghost/core/core/server/api/endpoints/. Otherwise, locate the existing endpoint file in the same directory.
  2. The endpoint file should create a controller object using the JSDoc type from (@tryghost/api-framework).Controller, including at minimum a docName and a single endpoint definition, i.e. browse.
  3. Add routes for each endpoint to ghost/core/core/server/web/api/endpoints/admin/routes.js.
  4. Add basic e2e-api tests for the endpoint in ghost/core/test/e2e-api/admin to ensure the new endpoints function as expected.
  5. Run the tests and iterate until they pass: cd ghost/core && yarn test:single test/e2e-api/admin/{test-file-name}.

Reference

For a detailed reference on Ghost's API framework and how to create API controllers, see reference.md.

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 51.7k
GitHub Forks 11.3k
Created Jan 2026
Last Updated 4个月前
tools tools backend

Related Skills

nestjs-expert
chevron_right
api-routes
chevron_right
permissions
chevron_right
vespera
chevron_right
postman
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.