Toolverse
All skills

add-admin-api-endpoint

by TryGhost

Add a new endpoint or endpoints to Ghost's Admin API at `ghost/api/admin/**`.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
TryGhost
Category
Backend
Views
4

About this skill

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

How to use

  1. Sprawdź, czy tworzysz endpoint dla zupełnie nowego zasobu. Jeśli tak, utwórz nowy plik w katalogu ghost/core/core/server/api/endpoints/. Jeśli rozszerzasz istniejący zasób, zlokalizuj jego plik w tym samym katalogu.

  2. W pliku endpointa zdefiniuj obiekt kontrolera przy użyciu typu JSDoc z @tryghost/api-framework (Controller). Kontroler musi zawierać co najmniej docName oraz jedną definicję endpointa, na przykład browse.

  3. Dodaj trasy dla każdego nowego endpointa do pliku ghost/core/core/server/web/api/endpoints/admin/routes.js. Upewnij się, że ścieżki odpowiadają konwencji ghost/api/admin/**.

  4. Utwórz testy end-to-end dla nowego endpointa w katalogu ghost/core/test/e2e-api/admin. Testy powinny weryfikować, że endpoint działa prawidłowo.

  5. Uruchom testy poleceniem cd ghost/core && yarn test:single test/e2e-api/admin/{nazwa-pliku-testowego}. Sprawdzaj wyniki i iteruj kod, aż wszystkie testy przejdą pomyślnie.

  6. Po zatwierdzeniu testów endpoint jest gotowy do użytku w Admin API Ghost'a.

Related skills

architecture-decision-records

by wshobson

Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

Backend
29130

sql-optimization-patterns

by wshobson

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

Backend
40163

openspec

by ruan-cat

OpenSpec 中文版规范助手 - 规范驱动的 AI 编程开发,帮助初始化、创建提案、编写规格、校验格式并归档变更。触发条件: 当用户提及 openspec、规范文档、需求管理、变更提案、spec-driven development 等关键词时主动调用。

Backend
27122

drizzle

by lobehub

Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.

Backend
79340

himalaya

by openclaw

CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).

Backend
35108

video-downloader

by ComposioHQ

Downloads videos from YouTube and other platforms for offline viewing, editing, or archival. Handles various formats and quality options.

Backend
50173