Problem Statement
Explain your API versioning strategy for a public service and how you deprecate safely.
Explanation
Prefer explicit versioning, such as URI or header, so clients upgrade on their timeline. Keep backward compatibility for a window. Document changes and provide SDKs where possible.
Announce deprecation, surface warnings in responses, and track usage per version. Use canaries and traffic shaping to remove old versions without surprise.
Code Solution
SolutionRead Only
GET /v2/orders Accept-Version: 2
Practice Sets
This question appears in the following practice sets:
