Skip to content

feat: implementation of API versioning (/api/v1) and test suite synchronization#3

Open
narendhar11 wants to merge 3 commits intoKNehe:mainfrom
narendhar11:fix/test-api-paths
Open

feat: implementation of API versioning (/api/v1) and test suite synchronization#3
narendhar11 wants to merge 3 commits intoKNehe:mainfrom
narendhar11:fix/test-api-paths

Conversation

@narendhar11
Copy link
Copy Markdown

Problem
The current backend endpoints were unversioned, making it difficult to maintain backward compatibility for future API changes. After adding the /api/v1 prefix to the routes in main.py, the existing test suite (pytest) began failing with 404 Not Found errors because the test URLs were no longer valid.

Proposed Changes
Backend Routing: Grouped all existing routes under an /api/v1 prefix in main.py.
Test Infrastructure: Defined a centralized API_V1_PREFIX constant in tests/conftest.py.
Test Suite Update: Refactored test_password_reset.py and test_health.py to use the centralized prefix for all endpoint calls, ensuring the tests pass with the new versioned paths.

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.

1 participant