#[Route(path: '/api/_action/theme/{themeId}/assign/{salesChannelId}', name: 'api.action.theme.assign', methods: ['POST'])]
public function assignTheme(string
$themeId, string
$salesChannelId, Context
$context): JsonResponse
{ $this->themeService->
assignTheme($themeId,
$salesChannelId,
$context);
return new JsonResponse([]);
} #[Route(path: '/api/_action/theme/{themeId}/reset', name: 'api.action.theme.reset', methods: ['PATCH'])]
public function resetTheme(string
$themeId, Context
$context): JsonResponse
{ $this->themeService->
resetTheme($themeId,
$context);
return new JsonResponse([]);
} #[Route(path: '/api/_action/theme/{themeId}/structured-fields', name: 'api.action.theme.structuredFields', methods: ['GET'])]
public function structuredFields(string
$themeId, Context
$context): JsonResponse
{ $themeConfiguration =
$this->themeService->
getThemeConfigurationStructuredFields($themeId, true,
$context);
return new JsonResponse($themeConfiguration);
}}