/General
Versioning
Versions in the Path
The version is the first segment of every path: /v1/... or /v2/.... There is no version header.
v1 is Frozen
v1 answers exactly as it always has: the same paths, parameters, field names, field order and value formats. Its data keeps updating until v1 is retired. Tables that had stopped updating are no longer served, and their paths answer 404.
v1 is being retired in two steps, each announced in advance:
- The legacy route closes. Requests to
/public/...with thevnd.BNM.APIheader carryDeprecationandSunsetheaders until the route closes, about six months after launch. Before then there are short, scheduled periods when it answers410 Gone. Move to/v1/...with a token: the responses are the same. - v1 moves to v2. Every
/v1request carries a token, so we will contact each user directly with the timeline.
Breaking Changes in v2
All changes within a version are backwards compatible. The following are breaking changes, made only in a new version:
- Removing or renaming existing fields from response objects.
- Changing the type or format of existing response fields.
- Removing or renaming existing endpoints.
- Making previously optional parameters required.
The following are non-breaking changes and may happen at any time:
- Adding new optional query parameters to existing endpoints.
- Adding new fields to JSON response objects.
- Adding new endpoints.
- Improving error messages or adding detail to existing error responses.