[api-platform/core] prevent a deprecation warning and sync with upstream (#1227)

* [api-platform/core] prevent a deprecation warning and sync with upstream

* update post install
This commit is contained in:
Kévin Dunglas
2023-09-12 11:55:15 -04:00
committed by GitHub
parent 81880a2e5e
commit df1203b89a
8 changed files with 44 additions and 5 deletions
+4 -2
View File
@@ -1,8 +1,10 @@
* Your API is almost ready:
1. Create your first API resource in <info>src/Entity</info>;
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 webonyx/graphql-php</>,
then browse <info>/api/graphql</info>.
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs/</>
+4 -2
View File
@@ -1,8 +1,10 @@
* Your API is almost ready:
1. Create your first API resource in <info>src/Entity</info>;
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 webonyx/graphql-php</>,
then browse <info>/api/graphql</info>.
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs/</>
+3 -1
View File
@@ -2,7 +2,9 @@
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 webonyx/graphql-php</>,
then browse <info>/api/graphql</info>.
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs/</>
@@ -0,0 +1,10 @@
api_platform:
title: Hello API Platform
version: 1.0.0
# Good defaults for REST APIs
defaults:
stateless: true
cache_headers:
vary: ['Content-Type', 'Authorization', 'Origin']
extra_properties:
standard_put: true
@@ -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%/"
}
}
+10
View File
@@ -0,0 +1,10 @@
* 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 webonyx/graphql-php</>,
then browse <info>/api/graphql</info>.
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs/</>