What problem does it solve?
Enforces consistent, transport-layer-only HTTP CRUD behavior across the PowerX codebase so handlers remain thin, multi-tenant aware, and semantically equivalent to service and gRPC layers, reducing bugs and architectural drift.
Core Features & Use Cases
- Ruleset Enforcement: A comprehensive ruleset that validates route registration, handler signatures, and route prefixes to guarantee consistent API surface.
- Safety & Separation of Concerns: Ensures handlers do not perform DB or external IO, mandates tenant context injection, and centralizes audit and RBAC to the Service layer.
- Response & Pagination Conventions: Validates use of unified DTOs for errors, success envelopes, and pagination to make HTTP semantics equivalent to gRPC responses.
- Use Case: Run these checks during code review or CI to automatically detect handlers that violate multi-tenancy, routing, or DTO conventions before they reach production.
Quick Start
Run the ruleset checks against internal/transport/http, fix any handler violations to align routes, tenant handling, DTO usage, and remove DB/IO from handlers.