Adaptix version check
In case your API service wants to support several Adaptix versions with different features, you might need to check the version of Adaptix you communicate with. Since Adaptix 2.4.0 the version number is added to all API response headers. The header name is Adaptix-Version. With Adaptix PHP API library you can get the Adaptix version like this:
$version
will be in a semantic versioning format: [major].[minor].[patch]
. For example: 2.4.0
. If you’ll try it on the latest GitHub version, the version will have -dev
at the end. Like 2.5.1-dev
.