replicateToTmpDatabaseWithHttpInfo method

Future<Response> replicateToTmpDatabaseWithHttpInfo(
  1. String from,
  2. List<String> requestBody
)

Performs an HTTP 'POST /rest/v1/tmp/replicate/from/{from}' operation and returns the Response. Parameters:

Implementation

Future<Response> replicateToTmpDatabaseWithHttpInfo(String from, List<String> requestBody,) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/tmp/replicate/from/{from}'.replaceAll('{from}', from);

  // ignore: prefer_final_locals
  Object? postBody = requestBody;

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

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


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