getInfoVersion method
Future<ApiResponse>
getInfoVersion(
{ - Options? options,
})
Implementation
Future<ApiResponse> getInfoVersion({Options? options}) async {
// create path and map variables
final __path = '/info/version';
// query params
final queryParams = <QueryParam>[];
final headerParams = <String, String>{}
..addAll(options?.headers?.cast<String, String>() ?? {});
if (!headerParams.containsKey('Accept')) {
// we only want to accept this format as we can parse it
headerParams['Accept'] = 'application/json';
}
final authNames = <String>[];
final opt = options ?? Options();
final contentTypes = [];
if (contentTypes.isNotEmpty && headerParams['Content-Type'] == null) {
headerParams['Content-Type'] = contentTypes[0];
}
headerParams
.removeWhere((key, value) => value.isEmpty); // remove empty headers
opt.headers = headerParams;
opt.method = 'GET';
return await apiClient.invokeAPI(__path, queryParams, null, authNames, opt);
}