mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 23:26:40 +03:00
Add initial recipe for LiquidRazor DTO API bundle
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Default, safe config
|
||||
liquidrazor_dto_api:
|
||||
normalizer_priority: 10
|
||||
strict_types: true
|
||||
# Use '3.0.3' if you need max Redoc OSS compatibility
|
||||
openapi_version: '3.1.0'
|
||||
default_responses:
|
||||
422:
|
||||
class: LiquidRazor\DtoApiBundle\Response\ValidationErrorResponse
|
||||
description: 'Validation error'
|
||||
500:
|
||||
class: LiquidRazor\DtoApiBundle\Response\ErrorResponse
|
||||
description: 'Server error'
|
||||
@@ -0,0 +1,4 @@
|
||||
# Wire the auto-docs + schema + listener routes from the bundle
|
||||
liquidrazor_dto_api:
|
||||
resource: '@LiquidRazorDtoApiBundle/Resources/config/routes.php'
|
||||
prefix: /
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"bundles": {
|
||||
"LiquidRazor\\DtoApiBundle\\LiquidRazorDtoApiBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"post-install-output": [
|
||||
"✅ LiquidRazor DTO API bundle installed.",
|
||||
"Docs: /_docs/swagger • /_docs/redoc",
|
||||
"OpenAPI: /_schema/openapi.json",
|
||||
"Config: config/packages/liquidrazor_dto_api.yaml (edit defaults as you wish).",
|
||||
"Routes were added via config/routes/liquidrazor_dto_api.yaml."
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user