private readonly array
$cspTemplates =
[] ) { } #[Route(path: '/api/_info/openapi3.json', defaults: ['auth_required' => '%shopware.api.api_browser.auth_required_str%'], name: 'api.info.openapi3', methods: ['GET'])]
public function info(Request
$request): JsonResponse
{ $type =
$request->query->
getAlpha('type', DefinitionService::TYPE_JSON_API
);
$apiType =
$this->definitionService->
toApiType($type);
if ($apiType === null
) { throw ApiException::
invalidApiType($type);
} $data =
$this->definitionService->
generate(OpenApi3Generator::FORMAT, DefinitionService::API,
$apiType);
return new JsonResponse($data);
} #[Route(path: '/api/_info/queue.json', name: 'api.info.queue', methods: ['GET'])]
public function queue(): JsonResponse
{ try {