Skip to content

feat: API Versioning Strategy#108

Open
Uche44 wants to merge 1 commit intoDisciplr-Org:mainfrom
Uche44:feature/api-version
Open

feat: API Versioning Strategy#108
Uche44 wants to merge 1 commit intoDisciplr-Org:mainfrom
Uche44:feature/api-version

Conversation

@Uche44
Copy link

@Uche44 Uche44 commented Feb 26, 2026

src/routes/v1.ts — aggregation router collecting all route modules
src/middleware/apiVersion.ts — sets Api-Version: v1 response header
docs/api-versioning.md — versioning & deprecation policy
tests/versioning.test.ts — integration tests for versioning
3 modified files:

app.ts — routes now mount under /api/v1, old /api/* paths get 307 redirects
security.integration.test.ts — paths updated to /api/v1/health
apiKeys.test.ts — paths updated to /api/v1/api-keys and /api/v1/analytics
fixed conflicts in package.json

closes #51

@Uche44
Copy link
Author

Uche44 commented Feb 26, 2026

@1nonlypiece please merge

@1nonlypiece
Copy link
Contributor

@Uche44 Can you resolve the conflicts?

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.

API Versioning Strategy

2 participants