What problem does it solve?
Generate Chi HTTP handlers following GO modular architechture conventions (request/response DTOs, use case orchestration, error handling, swagger annotations, Fx DI). Use when creating HTTP endpoint handlers in internal/modules/<module>/http/chi/handler/ for REST operations (List, Create, Update, Delete, Get) that need to decode requests, call use cases, map responses, and handle errors with proper logging and tracing.
Core Features & Use Cases
- Scaffold a Chi-based HTTP handler structure aligned with a modular Go architecture, including request decoding, use-case orchestration, response mapping, and error handling.
- Enforce separation between HTTP DTOs and domain/use-case inputs/outputs, along with Swagger annotations and Fx DI wiring.
- Provide a consistent pattern for List, Create, Update, Delete, and Get endpoints with standardized logging and tracing hooks.
Quick Start
Create a new Chi handler for a module by wiring use cases, decoding requests, and returning mapped responses.