createDomainWithHttpInfo method

Future<Response> createDomainWithHttpInfo(
  1. CreateDomainOptions createDomainOptions
)

Create Domain

Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> createDomainWithHttpInfo(CreateDomainOptions createDomainOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/domains';

  // ignore: prefer_final_locals
  Object? postBody = createDomainOptions;

  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,
  );
}