getApiUrl function
Returns the API URL at the given index with the primary version string appended.
The primary version string is the first element of the versison list.
The URL is constructed by concatenating the element at index
from the apiurl
list with the primary version string. The resulting string is returned.
For example, if the apiurl list contains "https://lsp-api-beta.mitrafintech.com/api/",
"https://lsp-api.mitrafintech.com/api/"
and the versison list contains
"v1"
, then the URL returned for index
0 would be
"https://lsp-api-beta.mitrafintech.com/api/v1/".
See also:
Implementation
String getApiUrl() {
return "${apiurl[useApi]}${getVersion()}/";
}