Get v1.1 API information

get

/content/preview/api/v1.1

Returns information about the v1.1 API.
A version resource has the following properties:
  1. version: Version of the resource.
  2. lifecycle: Whether a version is actively supported or deprecated.
  3. isLatest: Whether it is the latest version.
  4. terminationDate (Optional): Date of termination.
  5. catalog: A child resource that serves as a metadata catalog for all the resources supported in that version.
Headers (Optional):
Header NameHeader Value
Acceptapplication/json

Request

Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Successful operation.
Body ()
Root Schema : Version
Type: object
Version.
Show Source

403 Response

Forbidden. Client is not authorized to perform this request.

500 Response

Internal server error. An unexpected error condition encountered in the system.
Back to Top

Examples

Example:

The following example shows how to get v1.1 Preview API by submission of a GET request on the REST resource using cURL:

curl -X GET -H 'Accept: application/json' 'https://host:port/content/preview/api/v1.1' 

This reads information of v1.1 preview API.

Response Body

{
        "version": "v1.1",
        "lifecycle": "active",
        "isLatest": true,
        "catalog": {
          "links": [
            {
              "href": "https://<hostname>/content/preview/api/v1.1/metadata-catalog",
              "rel": "canonical",
              "method": "GET",
              "mediaType": "application/json"
            }
          ]
        },
        "links": [
          {
            "href": "https://<hostname>/content/preview/api/v1.1",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/preview/api/v1.1",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/preview/api/v1.1/metadata-catalog",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }
Back to Top