Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[api-platform/core] Support for v3.4 and v4 #1339

Merged
merged 4 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions api-platform/core/3.4/config/packages/api_platform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
api_platform:
title: Hello API Platform
version: 1.0.0
defaults:
stateless: true
cache_headers:
vary: ['Content-Type', 'Authorization', 'Origin']
4 changes: 4 additions & 0 deletions api-platform/core/3.4/config/routes/api_platform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
api_platform:
resource: .
type: api_platform
prefix: /api
9 changes: 9 additions & 0 deletions api-platform/core/3.4/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bundles": {
"ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
}
}
10 changes: 10 additions & 0 deletions api-platform/core/3.4/post-install.txt
Original file line number Diff line number Diff line change
@@ -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/</>
Empty file.
7 changes: 7 additions & 0 deletions api-platform/symfony/3.4/config/packages/api_platform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
api_platform:
title: Hello API Platform
version: 1.0.0
defaults:
stateless: true
cache_headers:
vary: ['Content-Type', 'Authorization', 'Origin']
4 changes: 4 additions & 0 deletions api-platform/symfony/3.4/config/routes/api_platform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
api_platform:
resource: .
type: api_platform
prefix: /api
9 changes: 9 additions & 0 deletions api-platform/symfony/3.4/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bundles": {
"ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
}
}
10 changes: 10 additions & 0 deletions api-platform/symfony/3.4/post-install.txt
Original file line number Diff line number Diff line change
@@ -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/</>
Empty file.
Loading