Page options
Biocompile API versioning and stability
Last updated
On this page
The Biocompile API carries its major version in the path, and every public operation is
under /api/v1. A client written against version 1 keeps working for as long as version 1
exists, because changes within it only add to the API.
Changes that can happen in version 1
Within version 1, Biocompile may add to the API:
- New operations.
- New optional request parameters and body fields.
- New response fields.
- New values in response enums and new error codes.
- New scopes.
Write clients that tolerate these additions. Ignore response fields you do not know, and treat an unknown enum value or error code as a general case rather than a failure.
Changes that never happen in version 1
Biocompile never makes these changes within version 1:
- Remove an operation or a response field.
- Add a required request parameter or body field.
- Change the type of a field.
- Remove an enum value your requests may send.
- Require an additional scope for an existing operation.
Every change to the public API is compared with the published version before it ships, and
any of these changes is refused. A change that needs one goes into a new major version,
/api/v2.
Deprecation
An operation that is going away is first marked as deprecated. Its responses then carry a
Deprecation header and a Sunset header with a date at least 180 days later. The operation
keeps working until that date and is removed only in a new major version.
Log the Deprecation header in your client, so you see a deprecation well before the sunset
date.
Common questions
Will a Biocompile API update break my script?
No, as long as the script ignores fields and enum values it does not know. Version 1 only adds operations, optional fields and response fields.
How much notice is given before an operation is removed?
At least 180 days. The Sunset header on the operation’s responses gives the date, and
removal happens only in a new major version.
Related
Was this page helpful?
Something wrong or missing?