Area: API Standards
Priority: P1 — High
Description
Hard-coded v1 paths make future API evolution difficult. Without explicit versioning, breaking changes risk breaking integrations. Add /v1/ prefix to all endpoints with a clear versioning policy and migration plan for v2.
Acceptance Criteria
Technical Notes
- Deprecation policy: 6 months notice + 3 months grace before sunset
- Header approach: Deprecation + Sunset headers per RFC 8594
Description
Hard-coded v1 paths make future API evolution difficult. Without explicit versioning, breaking changes risk breaking integrations. Add /v1/ prefix to all endpoints with a clear versioning policy and migration plan for v2.
Acceptance Criteria
app.enableVersioning({ type: VersioningType.URI, defaultVersion: '1' })inmain.ts@Version('1')decorator on controllers for explicit documentationdocs/API_VERSIONING.md(deprecation timeline, sunset headers)/v1/healthand/healthboth return 200; v2 rejected with 404Technical Notes