invoke method
Future<ApiResponse>
invoke(
- String path,
- String method,
- QueryParams queryParams,
- Iterable<PFile> files,
- Object body,
- Map<String, String> formParams,
- String contentType,
- List<String>? authNames, {
- String? basePath,
})
Implementation
Future<ApiResponse> invoke(
String path,
String method,
QueryParams queryParams,
Iterable<PFile> files,
Object body,
Map<String, String?> headerParams,
Map<String, String> formParams,
String contentType,
List<String>? authNames,
{String? basePath}) async {
authNames ??= [
if (defaultAuthName != null) defaultAuthName!,
];
await updateParamsForAuth(authNames.toSet(), queryParams, headerParams);
return transport.invokeAPI(path, method, queryParams, files, body,
headerParams, formParams, contentType,
basePath: basePath);
}