Design Rest Api
Design RESTful API architecture with comprehensive endpoints, authentication, and documentation
$ npx claude-code-templates@latest --command="setup/design-rest-api" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Design REST API
Design comprehensive RESTful API architecture: $ARGUMENTS
Current Application State
- Framework detection: @package.json or @requirements.txt (Express, FastAPI, Spring Boot, etc.)
- Existing API: !
grep -r "route\|endpoint\|@app\\.route" src/ 2>/dev/null | wc -lroutes found - Authentication: !
grep -r "auth\|jwt\|session" src/ 2>/dev/null | wc -lauth components - Documentation: @swagger.yaml or @openapi.json (if exists)
Task
Design complete RESTful API with industry best practices and comprehensive functionality:
API Version: Use $ARGUMENTS to specify API version, GraphQL hybrid approach, or OpenAPI specification API Architecture:- Resource Design - RESTful endpoints, HTTP methods, URL structure, resource relationships
- Request/Response Models - Data validation, serialization, error handling, status codes
- Authentication & Authorization - JWT, OAuth, RBAC, API keys, rate limiting
- API Documentation - OpenAPI/Swagger specs, interactive documentation, code examples
- Versioning Strategy - URL, header, or content-type based versioning
- Performance & Security - Caching, pagination, CORS, input validation, SQL injection prevention
Related Claude Code Commands
Design Database Schema
Design optimized database schemas with proper relationships, constraints, and performance considerations
Setup Docker Containers
Setup Docker containerization with multi-stage builds and development workflows
Setup Development Environment
Setup comprehensive development environment with tools, configurations, and workflows
Setup Linting
Configure comprehensive code linting and quality analysis tools with automated enforcement
Create Database Migrations
Create and manage database migrations with proper versioning and rollback support
Update Dependencies
Update and modernize project dependencies with comprehensive testing and compatibility checks
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.