Конфигурация / Config

config/packages/api_platform.yaml

api_platform: mapping: paths: ['%kernel.project_dir%/src/Entity'] patch_formats: json: ['application/merge-patch+json'] swagger: versions: [3] api_keys: apiKey: name: "Authorization" type: "header"

config/routes/api_platform.yaml

api_platform: resource: . type: api_platform prefix: /api

Symfony / API Platform