Common approach: put the version in the path (/api/v1/...) using routers with prefixes, keep old versions working while clients migrate, mark deprecated endpoints (deprecated=True) and communicate a retirement date.
Avoid breaking changes inside a version: adding optional fields is safe; renaming or removing fields is not.
Loading…