43 lines
1.5 KiB
YAML
43 lines
1.5 KiB
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' ]
|
|
jsonhal: [ 'application/hal+json' ]
|
|
jsonapi: [ 'application/vnd.api+json' ]
|
|
json: [ 'application/json' ]
|
|
xml: [ 'application/xml', 'text/xml' ]
|
|
yaml: [ 'application/x-yaml' ]
|
|
csv: [ 'text/csv' ]
|
|
html: [ 'text/html' ]
|
|
patch_formats:
|
|
jsonld: ['application/ld+json', 'application/json']
|
|
mapping:
|
|
paths: ['%kernel.project_dir%/config/api_platform', '%kernel.project_dir%/src/Dto']
|
|
use_symfony_listeners: true
|
|
collection:
|
|
pagination:
|
|
items_per_page_parameter_name: 'itemsPerPage'
|
|
defaults:
|
|
pagination_client_items_per_page: true
|
|
denormalization_context:
|
|
allow_extra_attributes: false
|
|
cache_headers:
|
|
vary: [ 'Content-Type', 'Authorization', 'Origin' ]
|
|
extra_properties:
|
|
standard_put: true
|
|
rfc_7807_compliant_errors: true
|
|
event_listeners_backward_compatibility_layer: false
|
|
keep_legacy_inflector: true
|
|
docs_formats:
|
|
jsonld: ['application/ld+json']
|
|
jsonopenapi: ['application/vnd.openapi+json']
|
|
html: ['text/html']
|
|
swagger:
|
|
versions: [3]
|
|
api_keys:
|
|
apiKey:
|
|
name: Authorization
|
|
type: header |