Skip to content

Conversation

@KAMALDEEN333
Copy link
Contributor

📌 Pull Request Title

Description

le(s):
The Response interceptor and swaager clean up has been achieved according to the below instructions and all criterias were met.
Standardized API responses using NestJS interceptors. Clean up Swagger decorators and DTOs across all modules to improved documentation and expected request/response clarity.

Proposed Actions:

Interceptor

Created a global ResponseInterceptor that wraps all successful responses in a common format:

{
"status": "success",
"data": {},
"message": "optional"
}
Swagger Cleanup

Reviewed and correct @ApiProperty() decorators in all DTOs across modules.
Ensured required fields, types, and descriptions are properly annotated.
Setup

Added interceptor globally in main.ts.
Testing:

Verified consistent response formats across all endpoints.
Run Swagger UI and confirm accurate documentation.
Unit test the interceptor behavior.

Related Issues

Changes Made

  • List key changes made in this PR.

How to Test

Screenshots (if applicable)

Checklist

@portableDD portableDD merged commit 674c37b into Nexacore-Org:main Jun 30, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants