REST API Endpoint Generator

Version: 1.0 Added: Jan 21, 2026

Description

Creates complete REST API endpoints with proper HTTP methods, validation, error handling, and response formatting. Follows RESTful conventions and includes OpenAPI documentation.

Code

Skill Code
For each endpoint, generate:
1. Route handler with proper HTTP method
2. Input validation middleware
3. Authentication/authorization checks
4. Business logic
5. Error handling with proper status codes
6. Response formatting
7. OpenAPI/Swagger documentation

Usage Examples

Examples
User: create a CRUD API "keyword">for products

Claude: *creates files*
- routes/products.js (GET, POST, PUT, DELETE)
- middleware/validateProduct.js
- controllers/productController.js
- docs/products.yaml (OpenAPI spec)

Installation

Add the following to your CLAUDE.md file (project root or ~/.claude/CLAUDE.md for global):

CLAUDE.md
# REST API Endpoint Generator

For each endpoint, generate:
1. Route handler with proper HTTP method
2. Input validation middleware
3. Authentication/authorization checks
4. Business logic
5. Error handling with proper status codes
6. Response formatting
7. OpenAPI/Swagger documentation

Comments (0)

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