6 declare(strict_types=1);
25 private $swaggerGenerator;
42 $this->swaggerGenerator = $swaggerGenerator;
51 $requestedServices =
$request->getRequestedServices(
'all');
53 ? $this->swaggerGenerator->getListOfServices()
55 $responseBody = $this->swaggerGenerator->generate(
61 $this->response->setBody($responseBody)->setHeader(
'Content-Type',
'application/json');
69 if (strpos(ltrim(
$request->getPathInfo(),
'/'), self::PROCESSOR_PATH) === 0) {
canProcess(\Magento\Framework\Webapi\Rest\Request $request)
process(\Magento\Framework\Webapi\Rest\Request $request)
__construct(Generator $swaggerGenerator, RestResponse $response)