What problem does it solve?
This Skill addresses the need for consistent API responses, pagination, and error handling in NestJS applications, improving developer experience and client-side integration.
Core Features & Use Cases
- Generic Response Wrapper: Ensures all successful API responses follow a uniform
{ statusCode, data, meta } structure using TransformInterceptor.
- Pagination Standards: Implements robust pagination with
PageOptionsDto and PageDto, including Swagger integration via ApiPaginatedResponse.
- Custom Error Response: Defines a standardized
ApiErrorResponse object for consistent error reporting across the API.
- Use Case: Applying these standards to a NestJS project ensures that all endpoints, from user retrieval to order processing, return data and errors in a predictable and easily consumable format for frontend applications.
Quick Start
Apply the NestJS API Standards to standardize response wrappers, pagination, and error handling in your project.