commandby altus4

Api

Installs: 0
Used in: 1 repos
Updated: 8h ago
$npx ai-builder add command altus4/api

Installs to .claude/commands/api.md

Create a new API endpoint for: $ARGUMENTS

API endpoint requirements for Altus 4:

- Use Express.js router pattern
- Include proper TypeScript types from `src/types/index.ts`
- Add Zod validation schema for request/response
- Implement authentication middleware where needed
- Use `AuthenticatedRequest` interface for protected routes
- Include proper error handling with `AppError` class
- Add structured logging with appropriate context
- Return consistent `ApiResponse<T>` format
- Include OpenAPI/JSDoc comments
- Add rate limiting if appropriate
- Follow RESTful conventions
- Include proper HTTP status codes

Quick Install

$npx ai-builder add command altus4/api

Details

Type
command
Author
altus4
Slug
altus4/api
Created
3d ago