registerUserWithHttpInfo method

Future<Response> registerUserWithHttpInfo(
  1. RegisterRequest registerRequest
)

Register a new user

Creates a new user account and returns authentication tokens

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> registerUserWithHttpInfo(RegisterRequest registerRequest,) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/auth/register';

  // ignore: prefer_final_locals
  Object? postBody = registerRequest;

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

  const contentTypes = <String>['application/json'];


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