coreUsersSearchRetrieveWithHttpInfo method

Future<Response> coreUsersSearchRetrieveWithHttpInfo({
  1. int? page,
  2. int? pageSize,
  3. String? query,
  4. String? sort,
})

Retrieve users based on query Not intended for public use with multitenant platforms Params: query sort

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> coreUsersSearchRetrieveWithHttpInfo({ int? page, int? pageSize, String? query, String? sort, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/core/users/search';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (page != null) {
    queryParams.addAll(_queryParams('', 'page', page));
  }
  if (pageSize != null) {
    queryParams.addAll(_queryParams('', 'page_size', pageSize));
  }
  if (query != null) {
    queryParams.addAll(_queryParams('', 'query', query));
  }
  if (sort != null) {
    queryParams.addAll(_queryParams('', 'sort', sort));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}