getQuerySuggestionsWithHttpInfo method
Retrieve query suggestions
Note: This method returns the HTTP Response
.
Parameters:
- String zapTraceSpan: OpenTracing span context
Implementation
Future<Response> getQuerySuggestionsWithHttpInfo(
{String? zapTraceSpan}) async {
final path = r'/query/suggestions';
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (zapTraceSpan != null) {
headerParams[r'Zap-Trace-Span'] = parameterToString(zapTraceSpan);
}
final contentTypes = <String>[];
final nullableContentType =
contentTypes.isNotEmpty ? contentTypes[0] : null;
final authNames = <String>[
'BasicAuthentication',
'QuerystringAuthentication',
'TokenAuthentication'
];
return await apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
nullableContentType,
authNames,
);
}