Skip to content

Commit df1203b

Browse files
authored
[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
1 parent 81880a2 commit df1203b

File tree

8 files changed

+44
-5
lines changed

8 files changed

+44
-5
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
* Your API is almost ready:
2-
1. Create your first API resource in <info>src/Entity</info>;
2+
1. Create your first API resource in <info>src/ApiResource</info>;
33
2. Go to <info>/api</info> to browse your API
44

5+
* Using MakerBundle? Try <info>php bin/console make:entity --api-resource</info>
6+
57
* To enable the GraphQL support, run <comment>composer require webonyx/graphql-php</>,
68
then browse <info>/api/graphql</info>.
79

8-
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>
10+
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs/</>
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
* Your API is almost ready:
2-
1. Create your first API resource in <info>src/Entity</info>;
2+
1. Create your first API resource in <info>src/ApiResource</info>;
33
2. Go to <info>/api</info> to browse your API
44

5+
* Using MakerBundle? Try <info>php bin/console make:entity --api-resource</info>
6+
57
* To enable the GraphQL support, run <comment>composer require webonyx/graphql-php</>,
68
then browse <info>/api/graphql</info>.
79

8-
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>
10+
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs/</>

api-platform/core/3.0/post-install.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
1. Create your first API resource in <info>src/ApiResource</info>;
33
2. Go to <info>/api</info> to browse your API
44

5+
* Using MakerBundle? Try <info>php bin/console make:entity --api-resource</info>
6+
57
* To enable the GraphQL support, run <comment>composer require webonyx/graphql-php</>,
68
then browse <info>/api/graphql</info>.
79

8-
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>
10+
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs/</>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
api_platform:
2+
title: Hello API Platform
3+
version: 1.0.0
4+
# Good defaults for REST APIs
5+
defaults:
6+
stateless: true
7+
cache_headers:
8+
vary: ['Content-Type', 'Authorization', 'Origin']
9+
extra_properties:
10+
standard_put: true
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
api_platform:
2+
resource: .
3+
type: api_platform
4+
prefix: /api

api-platform/core/3.1/manifest.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"bundles": {
3+
"ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/",
7+
"src/": "%SRC_DIR%/"
8+
}
9+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
* Your API is almost ready:
2+
1. Create your first API resource in <info>src/ApiResource</info>;
3+
2. Go to <info>/api</info> to browse your API
4+
5+
* Using MakerBundle? Try <info>php bin/console make:entity --api-resource</info>
6+
7+
* To enable the GraphQL support, run <comment>composer require webonyx/graphql-php</>,
8+
then browse <info>/api/graphql</info>.
9+
10+
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs/</>

api-platform/core/3.1/src/ApiResource/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)