apiV1UsersGetWithHttpInfo method

Future<Response> apiV1UsersGetWithHttpInfo({
  1. String? page,
  2. String? limit,
  3. String? search,
})

List users

Get a paginated list of users in the organization

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> apiV1UsersGetWithHttpInfo({ String? page, String? limit, String? search, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/users';

  // 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 (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }
  if (search != null) {
    queryParams.addAll(_queryParams('', 'search', search));
  }

  const contentTypes = <String>[];


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