api-endpoint-create

cpa03 的头像作者 cpa03

Standard procedure for creating robust API endpoints

📖 中文导读:Standard procedure for creating robust API endpoints 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: api-endpoint-create description: Standard procedure for creating robust API endpoints

Procedure

  1. Define the Request/Response schema (Zod/OpenAPI).
  2. Create the route handler/controller.
  3. Implement business logic in a service layer.
  4. Add authentication/authorization middleware.
  5. Write an integration test for the endpoint.