Part-DB.Part-DB-server/config/packages/api_platform.yaml

41 lines
1.1 KiB
YAML
Raw Normal View History

2023-08-06 00:42:34 +02:00
api_platform:
title: 'Part-DB API'
description: 'API of Part-DB'
version: '0.1.0'
2023-12-03 22:43:42 +01:00
formats:
jsonld: ['application/ld+json']
json: ['application/json']
jsonapi: ['application/vnd.api+json']
2023-12-03 22:43:42 +01:00
docs_formats:
jsonld: ['application/ld+json']
jsonopenapi: ['application/vnd.openapi+json']
html: ['text/html']
json: ['application/vnd.openapi+json']
2023-10-25 20:40:41 +02:00
swagger:
api_keys:
# overridden in OpenApiFactoryDecorator
access_token:
name: Authorization
type: header
defaults:
2023-10-06 13:00:13 +02:00
# TODO: Change this to true later. In the moment it is false, because we use the session in somewhere
stateless: false
cache_headers:
vary: ['Content-Type', 'Authorization', 'Origin']
extra_properties:
standard_put: true
2023-12-03 22:43:42 +01:00
rfc_7807_compliant_errors: true
2023-10-06 13:00:13 +02:00
2023-12-03 22:43:42 +01:00
pagination_client_items_per_page: true # Allow clients to override the default items per page
keep_legacy_inflector: false
# Need to be true, or some tests will fail
2025-02-22 19:35:49 +01:00
use_symfony_listeners: true
serializer:
# Change this to false later, to remove the hydra prefix on the API
hydra_prefix: true