Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/bundle/ApiPlatform/OpenApiFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
namespace Ibexa\Bundle\Rest\ApiPlatform;

use ApiPlatform\OpenApi\Factory\OpenApiFactoryInterface;
use ApiPlatform\OpenApi\Model\Info;
use ApiPlatform\OpenApi\Model\Operation;
use ApiPlatform\OpenApi\Model\Response;
use ApiPlatform\OpenApi\OpenApi;
use ArrayObject;
use Ibexa\Contracts\Core\Ibexa;
use Symfony\Component\HttpKernel\KernelInterface;

final readonly class OpenApiFactory implements OpenApiFactoryInterface
Expand All @@ -30,6 +32,7 @@ public function __construct(
public function __invoke(array $context = []): OpenApi
{
$openApi = ($this->decorated)($context);
$openApi = $openApi->withInfo((new Info('Ibexa DXP REST API', Ibexa::VERSION, 'TODO: Description')));
$openApi = $this->addSchemas($openApi);

$this->insertExampleFilesContent($openApi);
Expand Down
Loading