Querying an API Version¶
Function¶
This API is used to query a specified API version of the BMS service.
URI¶
GET /{api_version}
Table 1 lists the parameters.
Parameter | Mandatory | Description |
---|---|---|
api_version | Yes | Specifies the API version, for example, v1. |
Request Parameters¶
None
Example Request¶
Querying the API V1
GET https://{BMS Endpoint}/v1
Response Parameters¶
Parameter | Type | Description |
---|---|---|
version | Object | Specifies a specified API version of the BMS service. For details, see Table 2. |
Parameter | Type | Description |
---|---|---|
id | String | Specifies the API version ID. |
links | Array of objects | Specifies the API URL. For details, see Table 3. |
min_version | String | Specifies the earliest micro API version that is supported. |
status | String | Specifies the API version status.
|
updated | String | Specifies the release date of an API version. The timestamp format is YYYY-MM-DDTHH:MM:SSZ (ISO 8601), for example, 2018-09-30T00:00:00Z. |
version | String | Specifies the latest micro API version that is supported. |
Parameter | Type | Description |
---|---|---|
href | String | Specifies the API URL. |
rel | String | Specifies the API URL dependency. The value can be:
|
Example Response¶
{
"version": {
"id": "v1",
"links": [
{
"href": "http://bms.xxx.com/v1/",
"rel": "self"
}
],
"min_version": "",
"status": "CURRENT",
"updated": "2018-09-30T00:00:00Z",
"version": ""
}
}
Returned Values¶
Normal values
Return Value | Description |
---|---|
200 | The request has been successfully processed. |
For details about other returned values, see Status Codes.
Error Codes¶
See Error Codes.