Status: Placeholder. API v2 has not been introduced yet.
This guide reserves the migration path for the next breaking API version. Until
v2 is implemented, /api/v1 remains the current and supported API surface.
- Create the v2 router in
src/routes/v2/index.ts. - Mount it at
/api/v2insrc/app.tsalongside the existing v1 router. - Keep the v1 routes unchanged for backward compatibility while additive, non-breaking changes continue to land in v1.
- Replace this placeholder with concrete consumer migration steps, document a minimum six-month v1 deprecation timeline in the changelog, and announce the breaking changes in release notes.
The completed guide for a real v2 release must identify:
- the affected v1 endpoints and their v2 replacements;
- every request, response, authentication, and error-contract change;
- side-by-side request and response examples;
- the first v2 release containing each change;
- the v1 deprecation date and final removal date; and
- a rollback or compatibility strategy for consumers migrating gradually.
No v1 endpoint should be removed before the documented deprecation window has elapsed.