#[Route(path: '/api/_action/import-export/cancel', name: 'api.action.import_export.cancel', methods: ['POST'])]
public function cancel(Request
$request, Context
$context): Response
{ $logId =
$request->request->
get('logId'
);
if (!\
is_string($logId)) { throw RoutingException::
invalidRequestParameter('logId'
);
} $this->importExportService->
cancel($context,
$logId);
$this->importExportFactory->
create($logId)->
abort();
return new Response('', Response::HTTP_NO_CONTENT
);
} #[Route(path: '/api/_action/import-export/prepare-template-file-download', name: 'api.action.import_export.template_file.prepare_download', methods: ['POST'])]
public function prepareTemplateFileDownload(Request
$request, Context
$context): Response
{ $profileId =
$request->query->
get('profileId'
);
if (!\
is_string($profileId)) { throw RoutingException::
invalidRequestParameter('profileId'
);
}