All current APIs are prefixed with:
/api/current
RackHD extenders can supplement the central API (common) with versioned customer-specific APIs in parallel.
Use the following convention when referencing API version:
/api/current/...
/api/1.1/...
/api/1.2/...
The second /[...]/ block in the URI is the version number. The “current” or “latest” placeholder points to the latest version of the API in the system.
Multiple API versions can be added in parallel. Use N, N-1, N-2, etc. as the naming convention.
All API versioning information should be conveyed in HTTP headers.
A translation and validation chain is used to support versioned “types” for URI resources from the RackHD system. The chain flow is:
BUSINESS OBJECT — TRANSLATE — VALIDATE
Data objects should be versioned in line with the API version.
Use the following guide lines when determining if a new API version is needed.
The following changes require a new API version:
The following changes do not require a new API version: