• Direct Connect

dc
  1. Help Center
  2. Direct Connect
  3. API Reference
  4. API
  5. Obtaining the API Version Information
  6. Querying All API Versions

Querying All API Versions

Function

This API is used to query all API versions supported by Direct Connect.

URI

GET /

Request

None

Response

Table 1 lists the response parameters.

Table 1 Response parameters

Parameter

Type

Description

versions

List

Indicates all API versions.

id

String

Indicates the version number, for example, v2.0

links

Array

Indicates the API URL.

href

String

Indicates the reference address of the current API version.

rel

String

Indicates the relationship between the current API version and the referenced address.

status

String

Indicates the version status. Possible values are as follows:

  • CURRENT: indicates a primary version.
  • SUPPORTED: indicates an old version but is still supported.
  • DEPRECATED: indicates a deprecated version which may be deleted later.

Examples

  • Example request
    GET /
  • Example response
    {
     "versions": [
        {
          "status": "CURRENT",
          "id": "v2.0",
          "links":[
            {
              "href": "https://network.az0.dc0.domainname.com/v2.0","rel": "self"
             }
          ]
        }
      ]
    }