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
Owner
  • 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

- 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
salman added 1 commit 2025-11-14 15:09:45 +00:00
- 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
salman added 1 commit 2025-11-14 15:17:21 +00:00
salman added 1 commit 2025-11-14 15:50:35 +00:00
- 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.
salman added 1 commit 2025-11-14 16:15:25 +00:00
salman added 1 commit 2025-11-14 17:28:03 +00:00
salman added 1 commit 2025-11-14 18:01:37 +00:00
salman added 1 commit 2025-11-14 18:09:48 +00:00
salman added 1 commit 2025-11-14 18:12:39 +00:00
salman added 1 commit 2025-11-14 18:25:31 +00:00
salman added 2 commits 2025-11-14 18:26:18 +00:00
salman closed this pull request 2025-11-14 20:08:26 +00:00
salman deleted branch feature/api-unified-response-format 2025-11-14 20:08:26 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: salman/igny8#1