mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
56 lines
2.0 KiB
JSON
56 lines
2.0 KiB
JSON
{
|
|
"manifests": {
|
|
"api-platform/core": {
|
|
"manifest": {
|
|
"bundles": {
|
|
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
|
"all"
|
|
]
|
|
},
|
|
"copy-from-recipe": {
|
|
"config/": "%CONFIG_DIR%/",
|
|
"src/": "%SRC_DIR%/"
|
|
},
|
|
"post-install-output": [
|
|
" * Your API is almost ready:",
|
|
" 1. Create your first API resource in <info>src/Entity</info>;",
|
|
" 2. Go to <info>/api</info> to browse your API",
|
|
"",
|
|
" * To enable the GraphQL support, run <comment>composer require webonyx/graphql-php</>,",
|
|
" then browse <info>/api/graphql</info>.",
|
|
"",
|
|
" * <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>"
|
|
]
|
|
},
|
|
"files": {
|
|
"src/Entity/.gitignore": {
|
|
"contents": [
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"config/routes/api_platform.yaml": {
|
|
"contents": [
|
|
"api_platform:",
|
|
" resource: .",
|
|
" type: api_platform",
|
|
" prefix: /api",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"config/packages/api_platform.yaml": {
|
|
"contents": [
|
|
"api_platform:",
|
|
" mapping:",
|
|
" paths: ['%kernel.project_dir%/src/Entity']",
|
|
""
|
|
],
|
|
"executable": false
|
|
}
|
|
},
|
|
"ref": "d57f9ff8067d8d077f026c4b4700ec876839aed9"
|
|
}
|
|
}
|
|
}
|