forked from docs/doc-exports
Reviewed-by: Bobkova, Natalia <natalia.bobkova@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
12 KiB
12 KiB
Querying the List of API Versions
Function
This API is used to query the list of API versions.
URI
URI format
GET /
Request
Sample:
GET https://{dcs_endpoint}/
Response
Parameter |
Type |
Description |
|---|---|---|
versions |
Array of objects |
List of API versions. For details, see Table 2. |
Parameter |
Type |
Description |
|---|---|---|
min_version |
String |
The minimum minorversion supported. If the version does not support minorversions, the value is empty. |
links |
Array of objects |
API version URI. For details, see Table 3. |
id |
String |
ID of the API version. |
updated |
String |
The last time when the API version was updated. Time format: UTC YYYY-MM-DDTHH:MM:SS.XXXXXX |
version |
String |
The maximum minorversion supported. If the version does not support minorversions, the value is empty. |
status |
String |
API version status. The value can be as follows:
|
Sample
{
"versions": [{
"id": "v1.0",
"links": [{
"href": "self",
"rel": "https://{dcs_endpoint}/v1.0/"
}],
"min_version": "",
"status": "DEPRECATED",
"updated": "2016-12-09T00:00:00Z",
"version": ""
},
{
"id": "v2",
"links": [{
"href": "self",
"rel": "https://{dcs_endpoint}/v2/"
}],
"min_version": "",
"status": "CURRENT",
"updated": "2016-12-09T00:00:00Z",
"version": ""
}]
}
Status Code
Status Code |
Description |
|---|---|
200 |
Normal |
Error Codes
For details, see Error Codes.
Parent topic: API Version Query