API Versioning Strategy
Standards
-
URI Path Versioning:
- Public and internal APIs must prefix routes with the major version:
/api/v1/orders/api/v2/orders
-
Backward Compatibility:
- Non-breaking changes (adding optional query parameters or new response fields) do not require incrementing major version numbers.
- Breaking changes (removing fields, changing field types, altering validation rules) require introducing a new major version path.
-
Deprecation Policy:
- Mark deprecated endpoints with
SunsetandDeprecationHTTP response headers.
- Mark deprecated endpoints with