Get Specific Version
get
/documents/api/{version}
Get information for the specified version of the API. The version resource provides information about all available versions or about a specific version of the API itself.
Request
Supported Media Types
- application/json
- application/xml
Path Parameters
-
version: string
Version value
Response
Supported Media Types
- application/json
- application/xml
200 Response
The request was fulfilled.
Root Schema : VersionDefinition
Type:
object
Version information.
Show Source
-
catalog(optional):
object APILinks
API links information.
-
isLatest(optional):
string
Indicates whether it is the latest version (
true
) or not (false
). -
lifecycle(optional):
string
Indicates whether the version is
active
ordeprecated
. The default value isactive
. -
links(optional):
array links
List of Links.
-
terminationDate(optional):
string
Indicates when the version will no longer be supported.
-
version(optional):
string
Version identifier.
Nested Schema : APILinks
Type:
object
API links information.
Show Source
-
href(optional):
string
Complete URL that uniquely defines the resource.
-
ref(optional):
string
Relationship.
Nested Schema : links
Type:
array
List of Links.
Show Source
-
Array of:
object APILinks
API links information.
Example Response (application/json)
{
"items":[
{
"version":"1.2",
"lifecycle":"active",
"isLatest":"true",
"catalog":{
"links":[
{
"ref":"canonical",
"href":"https://www.example.com/documents/api/1.2/metadata-catalog"
}
]
},
"links":[
{
"ref":"canonical",
"href":"https://www.example.com/documents/api/1.2"
}
]
}
]
}
Examples
The following example returns information for the specified version of the API.
GET .../api/1.2
Request Header
None.
Request Body
None.
HTTP Status Code
HTTP_STATUS = 200
JSON Response
{ "version": "1.2", "lifecycle": "active", "isLatest": true, "catalog": { "links": [ { "ref": "canonical", "href": "https://www.example.com/documents/api/1.2/metadata-catalog" } ] }, "links": [ { "ref": "canonical", "href": "https://www.example.com/documents/api/1.2" } ] }