API Versioning
Introduction
To ensure backward compatibility and allow for updates without disruption, we use an API versioning system. API versions are specified through the query string parameter api-version.
By including the version in the request, clients can ensure that they are using a specific version of the API, allowing for stable integration even when newer versions are released.
Versioning Format
The API version is passed using the api-version query parameter in the URL. For example:
Example:
https://api.example.com/resource?api-version=1.1
In this example, the client is requesting version 1.1 of the API.
Query Parameter Structure
- Parameter Name:
api-version - Version Format:
<major>.<minor>major: A breaking change or significant update (e.g., new features, altered behavior).minor: Backward-compatible changes, such as bug fixes or minor improvements.
Example Requests
Request with API version 1.0
Example:
GET https://api.example.com/resource?api-version=1.0