mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
62 lines
2.4 KiB
JSON
62 lines
2.4 KiB
JSON
{
|
|
"manifests": {
|
|
"api-platform/symfony": {
|
|
"manifest": {
|
|
"bundles": {
|
|
"ApiPlatform\\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/ApiResource</info>;",
|
|
" 2. Go to <info>/api</info> to browse your API",
|
|
"",
|
|
" * Using MakerBundle? Try <info>php bin/console make:entity --api-resource</info> ",
|
|
"",
|
|
" * To enable the GraphQL support, run <comment>composer require api-platform/graphql</>,",
|
|
" then browse <info>/api/graphql</info>.",
|
|
"",
|
|
" * <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs/</>"
|
|
]
|
|
},
|
|
"files": {
|
|
"config/packages/api_platform.yaml": {
|
|
"contents": [
|
|
"api_platform:",
|
|
" title: Hello API Platform",
|
|
" version: 1.0.0",
|
|
" defaults:",
|
|
" stateless: true",
|
|
" cache_headers:",
|
|
" vary: ['Content-Type', 'Authorization', 'Origin']",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"config/routes/api_platform.yaml": {
|
|
"contents": [
|
|
"api_platform:",
|
|
" resource: .",
|
|
" type: api_platform",
|
|
" prefix: /api",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"src/ApiResource/.gitignore": {
|
|
"contents": [
|
|
""
|
|
],
|
|
"executable": false
|
|
}
|
|
},
|
|
"ref": "e9952e9f393c2d048f10a78f272cd35e807d972b"
|
|
}
|
|
}
|
|
}
|