Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
15 KiB
Querying All API Versions
Description
Query all API versions.
Constraints
None
URI
GET /
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
Content-Type |
Yes |
String |
Message body type (format). The value can be application/json or charset=utf-8 application/json. Default value: application/json |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
versions |
Array of VersionDetail objects |
List of all versions. |
Parameter |
Type |
Description |
|---|---|---|
id |
String |
Version ID. |
links |
Link object |
API URL. |
version |
String |
Maximum microversion. If microversions are not supported, the value is empty. |
status |
String |
Version status. The value can be:
|
updated |
String |
Version release time in UTC. For example, the release time of v1 is 2014-06-28T12:20:21Z. |
min_version |
String |
Minimum microversion. If microversions are not supported, the value is empty. |
Example Request
GET https://{endpoint}
Example Response
Status code: 200
Query succeeded.
{
"versions" : [ {
"id" : "v2",
"links" : {
"href" : "https://swr-api.xxxx.mycloud.com/v2/",
"rel" : "self"
},
"min_version" : "2.0",
"status" : "CURRENT",
"updated" : "2020-07-09T00:00:00Z",
"version" : "2.26"
} ]
}
Status Codes
Status Code |
Description |
|---|---|
200 |
Query succeeded. |
500 |
Internal error. |
Error Codes
For details, see Error Codes.