diff --git a/api-platform/core/4.0/config/packages/api_platform.yaml b/api-platform/core/4.0/config/packages/api_platform.yaml new file mode 100644 index 000000000..02f295ab0 --- /dev/null +++ b/api-platform/core/4.0/config/packages/api_platform.yaml @@ -0,0 +1,7 @@ +api_platform: + title: Hello API Platform + version: 1.0.0 + defaults: + stateless: true + cache_headers: + vary: ['Content-Type', 'Authorization', 'Origin'] diff --git a/api-platform/core/4.0/config/routes/api_platform.yaml b/api-platform/core/4.0/config/routes/api_platform.yaml new file mode 100644 index 000000000..38f11cba8 --- /dev/null +++ b/api-platform/core/4.0/config/routes/api_platform.yaml @@ -0,0 +1,4 @@ +api_platform: + resource: . + type: api_platform + prefix: /api diff --git a/api-platform/core/4.0/manifest.json b/api-platform/core/4.0/manifest.json new file mode 100644 index 000000000..af1645232 --- /dev/null +++ b/api-platform/core/4.0/manifest.json @@ -0,0 +1,9 @@ +{ + "bundles": { + "ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "src/": "%SRC_DIR%/" + } +} diff --git a/api-platform/core/4.0/post-install.txt b/api-platform/core/4.0/post-install.txt new file mode 100644 index 000000000..613c2b800 --- /dev/null +++ b/api-platform/core/4.0/post-install.txt @@ -0,0 +1,10 @@ + * Your API is almost ready: + 1. Create your first API resource in src/ApiResource; + 2. Go to /api to browse your API + + * Using MakerBundle? Try php bin/console make:entity --api-resource + + * To enable the GraphQL support, run composer require webonyx/graphql-php, + then browse /api/graphql. + + * Read the documentation at https://api-platform.com/docs/ diff --git a/api-platform/core/4.0/src/ApiResource/.gitignore b/api-platform/core/4.0/src/ApiResource/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/api-platform/symfony/3.3/config/packages/api_platform.yaml b/api-platform/symfony/3.3/config/packages/api_platform.yaml new file mode 100644 index 000000000..e4233dc3c --- /dev/null +++ b/api-platform/symfony/3.3/config/packages/api_platform.yaml @@ -0,0 +1,18 @@ +api_platform: + title: Hello API Platform + version: 1.0.0 + formats: + jsonld: ['application/ld+json'] + docs_formats: + jsonld: ['application/ld+json'] + jsonopenapi: ['application/vnd.openapi+json'] + html: ['text/html'] + defaults: + stateless: true + cache_headers: + vary: ['Content-Type', 'Authorization', 'Origin'] + extra_properties: + standard_put: true + rfc_7807_compliant_errors: true + keep_legacy_inflector: false + use_symfony_listeners: true diff --git a/api-platform/symfony/3.3/config/routes/api_platform.yaml b/api-platform/symfony/3.3/config/routes/api_platform.yaml new file mode 100644 index 000000000..38f11cba8 --- /dev/null +++ b/api-platform/symfony/3.3/config/routes/api_platform.yaml @@ -0,0 +1,4 @@ +api_platform: + resource: . + type: api_platform + prefix: /api diff --git a/api-platform/symfony/3.3/manifest.json b/api-platform/symfony/3.3/manifest.json new file mode 100644 index 000000000..af1645232 --- /dev/null +++ b/api-platform/symfony/3.3/manifest.json @@ -0,0 +1,9 @@ +{ + "bundles": { + "ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "src/": "%SRC_DIR%/" + } +} diff --git a/api-platform/symfony/3.3/post-install.txt b/api-platform/symfony/3.3/post-install.txt new file mode 100644 index 000000000..613c2b800 --- /dev/null +++ b/api-platform/symfony/3.3/post-install.txt @@ -0,0 +1,10 @@ + * Your API is almost ready: + 1. Create your first API resource in src/ApiResource; + 2. Go to /api to browse your API + + * Using MakerBundle? Try php bin/console make:entity --api-resource + + * To enable the GraphQL support, run composer require webonyx/graphql-php, + then browse /api/graphql. + + * Read the documentation at https://api-platform.com/docs/ diff --git a/api-platform/symfony/3.3/src/ApiResource/.gitignore b/api-platform/symfony/3.3/src/ApiResource/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/api-platform/symfony/4.0/config/packages/api_platform.yaml b/api-platform/symfony/4.0/config/packages/api_platform.yaml new file mode 100644 index 000000000..02f295ab0 --- /dev/null +++ b/api-platform/symfony/4.0/config/packages/api_platform.yaml @@ -0,0 +1,7 @@ +api_platform: + title: Hello API Platform + version: 1.0.0 + defaults: + stateless: true + cache_headers: + vary: ['Content-Type', 'Authorization', 'Origin'] diff --git a/api-platform/symfony/4.0/config/routes/api_platform.yaml b/api-platform/symfony/4.0/config/routes/api_platform.yaml new file mode 100644 index 000000000..38f11cba8 --- /dev/null +++ b/api-platform/symfony/4.0/config/routes/api_platform.yaml @@ -0,0 +1,4 @@ +api_platform: + resource: . + type: api_platform + prefix: /api diff --git a/api-platform/symfony/4.0/manifest.json b/api-platform/symfony/4.0/manifest.json new file mode 100644 index 000000000..af1645232 --- /dev/null +++ b/api-platform/symfony/4.0/manifest.json @@ -0,0 +1,9 @@ +{ + "bundles": { + "ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "src/": "%SRC_DIR%/" + } +} diff --git a/api-platform/symfony/4.0/post-install.txt b/api-platform/symfony/4.0/post-install.txt new file mode 100644 index 000000000..82bb10a69 --- /dev/null +++ b/api-platform/symfony/4.0/post-install.txt @@ -0,0 +1,10 @@ + * Your API is almost ready: + 1. Create your first API resource in src/ApiResource; + 2. Go to /api to browse your API + + * Using MakerBundle? Try php bin/console make:entity --api-resource + + * To enable the GraphQL support, run composer require api-platform/graphql, + then browse /api/graphql. + + * Read the documentation at https://api-platform.com/docs/ diff --git a/api-platform/symfony/4.0/src/ApiResource/.gitignore b/api-platform/symfony/4.0/src/ApiResource/.gitignore new file mode 100644 index 000000000..e69de29bb