Get the WebAPI version number

getWebApiVersion(baseUrl)

Arguments

baseUrl

The base URL for the WebApi instance, for example: "http://server.org:80/WebAPI".

Value

The WebApi versions as a string.

Details

Obtains the WebAPI version number. This function is used to check that WebAPI baseUrl can be accessed and is a good first check to make sure you can access a WebAPI endpoint.

Examples

if (FALSE) {
getWebApiVersion("http://server.org:80/WebAPI")
}