Skip to content
Development
Command

/add-endpoint

Add a new API endpoint to an existing backend service with validation and tests.

From plugin
rohitg00-claude-code-toolkit
2.5k199 skills138 agents199 commands
Install
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/add-endpoint

Context preview

What this command does when you run it.

Add a new API endpoint to an existing backend service with validation and tests.

Command definition

add-endpoint.md

Add a new API endpoint to an existing backend service with validation and tests.

Steps

1. Define the endpoint specification: 2. Identify the framework and add the route: 3. Implement the handler: 4. Add input validation: 5. Add middleware if needed: 6. Write tests: 7. Update API documentation.

Format

Endpoint: <METHOD> <path>
Auth: <required|optional|none>
Request: <body schema>
Response: <success schema>

Rules

  • Follow REST conventions: POST for create, PUT for replace, PATCH for update.
  • Return appropriate HTTP status codes (201 for create, 204 for delete).
  • Validate all input before processing.
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

Get the whole plugin