|
1 | 1 | api_platform: |
2 | | - title: "%env(OPENAPI_TITLE)%" |
3 | | - description: "%env(OPENAPI_DESCRIPTION)%" |
4 | | - version: 2.0.0 |
5 | | - show_webby: false |
6 | | - |
7 | | - openapi: |
8 | | - contact: |
9 | | - name: "%env(OPENAPI_CONTACT_NAME)%" |
10 | | - url: "%env(OPENAPI_CONTACT_URL)%" |
11 | | - email: "%env(OPENAPI_CONTACT_EMAIL)%" |
12 | | - termsOfService: "%env(OPENAPI_TERMS_OF_SERVICE)%" |
13 | | - |
14 | | - formats: |
15 | | - jsonld: ["application/ld+json"] |
16 | | - |
17 | | - docs_formats: |
18 | | - jsonld: ["application/ld+json"] |
19 | | - jsonopenapi: ["application/vnd.openapi+json"] |
20 | | - html: ["text/html"] |
21 | | - |
22 | | - mapping: |
23 | | - paths: |
24 | | - - "%kernel.project_dir%/src/Api/Dto" |
25 | | - |
26 | | - doctrine: |
27 | | - enabled: false |
28 | | - |
29 | | - swagger: |
30 | | - api_keys: |
31 | | - ApiKeyAuth: |
32 | | - name: "X-Api-Key" |
33 | | - type: header |
34 | | - |
35 | | - elasticsearch: |
36 | | - hosts: ["%env(INDEX_URL)%"] |
37 | | - |
38 | | - defaults: |
39 | | - stateless: true |
40 | | - pagination_items_per_page: "%env(int:PAGINATION_ITEMS_PER_PAGE)%" |
41 | | - pagination_maximum_items_per_page: "%env(int:PAGINATION_MAXIMUM_ITEMS_PER_PAGE)%" |
42 | | - cache_headers: |
43 | | - max_age: 3600 |
44 | | - shared_max_age: 3600 |
45 | | - vary: ["Content-Type", "Authorization", "Origin"] |
46 | | - extra_properties: |
47 | | - # Note: The api-platform/core 3.4 recipe sets `standard_put` eventhough |
48 | | - # https://api-platform.com/docs/core/upgrade-guide/#api-platform-34 |
49 | | - # (probably) tells us to remove it |
50 | | - # standard_put: true |
51 | | - # https://api-platform.com/docs/core/upgrade-guide/#api-platform-34 |
52 | | - rfc_7807_compliant_errors: true |
53 | | - # Note: The api-platform/core 3.4 recipe wants `use_symfony_listeners` to be true |
54 | | - use_symfony_listeners: false |
55 | | - |
56 | | - # https://api-platform.com/docs/core/upgrade-guide/#upgrade-guide |
57 | | - serializer: |
58 | | - hydra_prefix: true |
| 2 | + title: '%env(OPENAPI_TITLE)%' |
| 3 | + description: '%env(OPENAPI_DESCRIPTION)%' |
| 4 | + version: 2.0.0 |
| 5 | + show_webby: false |
| 6 | + |
| 7 | + openapi: |
| 8 | + contact: |
| 9 | + name: '%env(OPENAPI_CONTACT_NAME)%' |
| 10 | + url: '%env(OPENAPI_CONTACT_URL)%' |
| 11 | + email: '%env(OPENAPI_CONTACT_EMAIL)%' |
| 12 | + termsOfService: '%env(OPENAPI_TERMS_OF_SERVICE)%' |
| 13 | + |
| 14 | + formats: |
| 15 | + jsonld: ['application/ld+json'] |
| 16 | + |
| 17 | + docs_formats: |
| 18 | + jsonld: ['application/ld+json'] |
| 19 | + jsonopenapi: ['application/vnd.openapi+json'] |
| 20 | + html: ['text/html'] |
| 21 | + |
| 22 | + mapping: |
| 23 | + paths: |
| 24 | + - '%kernel.project_dir%/src/Api/Dto' |
| 25 | + |
| 26 | + doctrine: |
| 27 | + enabled: false |
| 28 | + |
| 29 | + swagger: |
| 30 | + api_keys: |
| 31 | + ApiKeyAuth: |
| 32 | + name: 'X-Api-Key' |
| 33 | + type: header |
| 34 | + |
| 35 | + elasticsearch: |
| 36 | + hosts: ['%env(INDEX_URL)%'] |
| 37 | + |
| 38 | + defaults: |
| 39 | + stateless: true |
| 40 | + pagination_items_per_page: '%env(int:PAGINATION_ITEMS_PER_PAGE)%' |
| 41 | + pagination_maximum_items_per_page: '%env(int:PAGINATION_MAXIMUM_ITEMS_PER_PAGE)%' |
| 42 | + cache_headers: |
| 43 | + max_age: 3600 |
| 44 | + shared_max_age: 3600 |
| 45 | + vary: ['Content-Type', 'Authorization', 'Origin'] |
| 46 | + extra_properties: |
| 47 | + # Note: The api-platform/core 3.4 recipe sets `standard_put` eventhough |
| 48 | + # https://api-platform.com/docs/core/upgrade-guide/#api-platform-34 |
| 49 | + # (probably) tells us to remove it |
| 50 | + # standard_put: true |
| 51 | + # https://api-platform.com/docs/core/upgrade-guide/#api-platform-34 |
| 52 | + rfc_7807_compliant_errors: true |
| 53 | + # Note: The api-platform/core 3.4 recipe wants `use_symfony_listeners` to be true |
| 54 | + use_symfony_listeners: false |
| 55 | + |
| 56 | + # https://api-platform.com/docs/core/upgrade-guide/#upgrade-guide |
| 57 | + serializer: |
| 58 | + hydra_prefix: true |
0 commit comments