This PR updates the response body structure of the request to ensure consistency and conformity across the entire application. The changes aim to standardize how responses are formatted, making them easier to understand, consume, and same format with other teams.
Key Changes:
Unified Response Structure: The response body now follows a standardized format, ensuring that all responses include status_code, message, and data fields.
Consistent Status Codes: Updated the response status codes to align with other teams response body.
Related Issue (Link to Github issue)
No related issue link provided.
How Has This Been Tested?
The updated response structure was tested across various endpoints to ensure consistency with other teams
Tests Performed:
Unit Tests: Validated that all endpoints return the updated response structure.
Integration Tests: Ensured that the new response format works seamlessly across different modules and services.
Manual Testing: Verified the changes in a staging environment, checking for correct implementation and no unintended side effects.
Screenshots (if appropriate - Postman, etc):
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[X] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
Description
This PR updates the response body structure of the request to ensure consistency and conformity across the entire application. The changes aim to standardize how responses are formatted, making them easier to understand, consume, and same format with other teams.
Key Changes:
status_code
,message
, anddata
fields.Related Issue (Link to Github issue)
No related issue link provided.
How Has This Been Tested?
The updated response structure was tested across various endpoints to ensure consistency with other teams
Tests Performed:
Screenshots (if appropriate - Postman, etc):
Types of changes
Checklist: