Version discovery¶
-
type
Version
¶ Version representation.
Data samples:
- Json
{ "id": "v1.0", "link": { "href": "http://example.com:9777/v1", "target_name": "v1" }, "status": "CURRENT" }
- XML
b'<value>\n <id>v1.0</id>\n <status>CURRENT</status>\n <link>\n <href>http://example.com:9777/v1</href>\n <target_name>v1</target_name>\n </link>\n</value>'
-
id
¶ - Type
str
The version identifier.
-
link
¶ - Type
Link
The link to the versioned API.
-
status
¶ - Type
Enum(SUPPORTED, CURRENT, DEPRECATED)
The status of the API (SUPPORTED, CURRENT or DEPRECATED).