Skip to content

Commit f5c05df

Browse files
authored
[api-platform/core] add 3.0 default configuration (#1125)
1 parent 96d11c2 commit f5c05df

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed
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.0/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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+
* To enable the GraphQL support, run <comment>composer require webonyx/graphql-php</>,
6+
then browse <info>/api/graphql</info>.
7+
8+
* <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>

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

Whitespace-only changes.

0 commit comments

Comments
 (0)