feat(api): add unified response format utilities (Section 1, Step 1.1-1.3) #1

Closed
salman wants to merge 11 commits from feature/api-unified-response-format into main

11 Commits

Author SHA1 Message Date
Desktop
ed255b3730 Revert "Update Status.tsx"
This reverts commit ecda7e0ef5.
2025-11-14 23:26:03 +05:00
Desktop
a533d05e51 Revert "Update Status.tsx"
This reverts commit 9e007023d0.
2025-11-14 23:25:57 +05:00
Desktop
9e007023d0 Update Status.tsx 2025-11-14 23:25:25 +05:00
Desktop
4acac12764 Revert "Update Status.tsx"
This reverts commit af73a786ed.
2025-11-14 23:12:31 +05:00
Desktop
af73a786ed Update Status.tsx 2025-11-14 23:09:42 +05:00
Desktop
ecda7e0ef5 Update Status.tsx 2025-11-14 23:01:30 +05:00
IGNY8 VPS (Salman)
5cc4d07373 section2-3 2025-11-14 17:27:58 +00:00
IGNY8 VPS (Salman)
d14d6093e0 section 2 2025-11-14 16:15:18 +00:00
IGNY8 VPS (Salman)
66b1868672 feat(api): implement centralized exception handling for unified error responses
- Add custom_exception_handler to handle exceptions in a unified format
- Log errors with request context and provide debug information in development mode
- Update settings.py to use the new exception handler
- Export custom_exception_handler in __init__.py for accessibility

This enhances error management across the API, improving debugging and user experience.
2025-11-14 15:50:26 +00:00
Desktop
b6cd544791 test 2025-11-14 20:17:14 +05:00
Desktop
a722f6caa3 feat(api): add unified response format utilities (Section 1, Step 1.1-1.3)
- Create response.py with success_response(), error_response(), paginated_response()
- Add unit tests for all response utility functions
- Create /api/ping/ health check endpoint using new format
- Update __init__.py to export response functions
- All changes are non-breaking - existing code unaffected

This implements Section 1 Task 1 from API-IMPLEMENTATION-PLAN-SECTION1.md
Ready for testing before applying to existing endpoints.

Ref: unified-api/API-IMPLEMENTATION-PLAN-SECTION1.md
2025-11-14 20:05:22 +05:00