Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Sep 25, 2024
1 parent 68c3fe4 commit 9fa3fa7
Show file tree
Hide file tree
Showing 15 changed files with 41 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions api-platform/symfony/3.3/config/packages/api_platform.yaml
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions api-platform/symfony/4.0/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/4.0/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/4.0/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.

0 comments on commit 9fa3fa7

Please sign in to comment.