mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Updated API platform recipe
This commit is contained in:
parent
60ecbc7c32
commit
07cc8a9534
2 changed files with 17 additions and 9 deletions
|
@ -1,14 +1,18 @@
|
||||||
api_platform:
|
api_platform:
|
||||||
|
|
||||||
title: 'Part-DB API'
|
title: 'Part-DB API'
|
||||||
description: 'API of Part-DB'
|
description: 'API of Part-DB'
|
||||||
|
|
||||||
version: '0.1.0'
|
version: '0.1.0'
|
||||||
|
|
||||||
# eager_loading:
|
formats:
|
||||||
# max_joins: 100
|
jsonld: ['application/ld+json']
|
||||||
|
json: ['application/json']
|
||||||
|
jsonapi: ['application/vnd.api+json']
|
||||||
|
|
||||||
keep_legacy_inflector: false
|
docs_formats:
|
||||||
|
jsonld: ['application/ld+json']
|
||||||
|
jsonopenapi: ['application/vnd.openapi+json']
|
||||||
|
html: ['text/html']
|
||||||
|
json: ['application/vnd.openapi+json']
|
||||||
|
|
||||||
swagger:
|
swagger:
|
||||||
api_keys:
|
api_keys:
|
||||||
|
@ -24,5 +28,9 @@ api_platform:
|
||||||
vary: ['Content-Type', 'Authorization', 'Origin']
|
vary: ['Content-Type', 'Authorization', 'Origin']
|
||||||
extra_properties:
|
extra_properties:
|
||||||
standard_put: true
|
standard_put: true
|
||||||
|
rfc_7807_compliant_errors: true
|
||||||
|
|
||||||
pagination_client_items_per_page: true # Allow clients to override the default items per page
|
pagination_client_items_per_page: true # Allow clients to override the default items per page
|
||||||
|
|
||||||
|
keep_legacy_inflector: false
|
||||||
|
event_listeners_backward_compatibility_layer: false
|
|
@ -6,12 +6,12 @@
|
||||||
"version": "v1.6.1"
|
"version": "v1.6.1"
|
||||||
},
|
},
|
||||||
"api-platform/core": {
|
"api-platform/core": {
|
||||||
"version": "3.1",
|
"version": "3.2",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
"repo": "github.com/symfony/recipes",
|
"repo": "github.com/symfony/recipes",
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"version": "3.1",
|
"version": "3.2",
|
||||||
"ref": "adf0c75f4bed8b0043a6680376323404953578c5"
|
"ref": "696d44adc3c0d4f5d25a2f1c4f3700dd8a5c6db9"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"config/packages/api_platform.yaml",
|
"config/packages/api_platform.yaml",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue