ogcore/config/packages/api_platform.yaml

25 lines
750 B
YAML

api_platform:
title: 'OgCore API'
description: 'API Documentation for OgCore'
version: 1.0.0
path_segment_name_generator: 'api_platform.path_segment_name_generator.dash'
formats:
jsonld: ['application/ld+json']
mapping:
paths: ['%kernel.project_dir%/config/api_platform']
defaults:
pagination_client_items_per_page: true
docs_formats:
jsonld: ['application/ld+json']
jsonopenapi: ['application/vnd.openapi+json']
html: ['text/html']
keep_legacy_inflector: false
use_symfony_listeners: true
graphql:
enabled: true
swagger:
versions: [3]
api_keys:
apiKey:
name: Authorization
type: header