composer require api-platform/core

This commit is contained in:
2022-10-02 15:15:57 +02:00
parent 02f8620e24
commit 8f9316cd64
6 changed files with 356 additions and 1 deletions

View File

@@ -10,4 +10,5 @@ return [
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
];

View File

@@ -0,0 +1,7 @@
api_platform:
mapping:
paths: ['%kernel.project_dir%/src/Entity']
patch_formats:
json: ['application/merge-patch+json']
swagger:
versions: [3]

View File

@@ -0,0 +1,4 @@
api_platform:
resource: .
type: api_platform
prefix: /api