[api-platform/core] add 3.0 default configuration (#1125)

This commit is contained in:
Antoine Bluchet
2022-09-13 18:30:27 +02:00
committed by GitHub
parent 96d11c2e2e
commit f5c05df7d0
4 changed files with 21 additions and 0 deletions
@@ -0,0 +1,4 @@
api_platform:
resource: .
type: api_platform
prefix: /api
+9
View File
@@ -0,0 +1,9 @@
{
"bundles": {
"ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
}
}
+8
View File
@@ -0,0 +1,8 @@
* 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
* 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</>