Versions and compatibility
The version is in the path, and it is v1. There is no header to negotiate, no date to
pin, and no minor version. While the MooverApp applications are the API's only clients,
v1 changes in place: what goes is removed in the release that stops using it, with no
deprecation period and no alias under the old name.
The lists below say which changes are breaking and which are not. The second list is the one to build against: a new field can appear in any response, and a new value in any enum, so a client that rejects what it does not recognise will break on a release that broke nothing. Ignore unknown fields, and treat an unknown enum value as a value you do not handle rather than as an error.
Watching for a change is reading the reference: the documents this site renders are generated from the running service, in the same build that produces it, so a release moves them both. There is no changelog that can be out of date with respect to the API, because there is no step between them.
18. Versioning and compatibility
- The version is a path segment:
v1,v2. No dotted or dated versions, noAcceptheader negotiation — the CDN in front of this API does not vary onAccept(a fact already paid for once, in the markdown-twin design). v1is the only version while the MooverApp applications are its only clients, and it changes in place. A field, path, parameter or method that goes is removed in the release that stops using it: no deprecation, no alias under the old name, no period in which both work.- These are breaking: removing or renaming a field, path or parameter; narrowing a type; adding a REQUIRED request field; changing a default; changing a status code for an existing condition; changing an id's format. A release that makes one changes every client with it.
- These are non-breaking and allowed any time: adding an optional request
field, adding a response field, adding an enum value (clients tolerate
unknowns, §11), adding an endpoint, adding a
detailsentry. - A second version opens only when a client appears that cannot be changed in the same release. From then on the breaking changes above are forbidden within a version, and a version is removed only when its last consumer is gone — verified by access logs, not by belief.