return new JsonResponse(['log' =>
$log->
jsonSerialize()]);
} #[Route(path: '/api/_action/import-export/process', name: 'api.action.import_export.process', methods: ['POST'])]
public function process(Request
$request, Context
$context): Response
{ $logId =
strtolower((string) $request->request->
get('logId'
));
$importExport =
$this->importExportFactory->
create($logId, 50, 50
);
$logEntity =
$importExport->
getLogEntity();
$message =
new ImportExportMessage($context,
$logEntity->
getId(),
$logEntity->
getActivity());
$this->messageBus->
dispatch($message);
return new Response('', Response::HTTP_NO_CONTENT
);
} #[Route(path: '/api/_action/import-export/file/prepare-download/{fileId}', name: 'api.action.import_export.file.prepare-download', methods: ['POST'])]
public function prepareDownload(string
$fileId, Context
$context): Response
{