Get available versions of a service
Retrieve the list of available versions of a REST service and identify the default version if defined.
When a REST service uses WSVersion, GWS provides a way to retrieve all available versions of the
service, as well as the default version if one is defined. This is done by extending the service URL
with a dedicated query
parameter.
GWS evaluates service versions based on the following rules:
- Versions are returned in lexicographical order.
- No semantic or numeric interpretation of version values is performed.
Steps to generate the version list
The response provides:
- A
listproperty containing all declared versions in lexicographical order. - A
defaultproperty identifying the default version, if one is defined. If no default version exists, this property is omitted.