Skip to content

Commit 4e64d58

Browse files
committed
[api-platform/core] sane defaults for API Platform 3.2
1 parent df1203b commit 4e64d58

File tree

5 files changed

+49
-0
lines changed

5 files changed

+49
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
api_platform:
2+
title: Hello API Platform
3+
version: 1.0.0
4+
formats:
5+
jsonld:
6+
- application/ld+json
7+
doc_formats:
8+
jsonopenapi:
9+
- application/vnd.openapi+json
10+
jsonld:
11+
- application/ld+json
12+
html:
13+
- text/html
14+
event_listeners_backward_compatibility_layer: false
15+
keep_legacy_inflector: false
16+
defaults:
17+
stateless: true
18+
cache_headers:
19+
vary:
20+
- Content-Type
21+
- Authorization
22+
- Origin
23+
extra_properties:
24+
standard_put: true
25+
rfc_7807_compliant_errors: true
26+
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.2/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.2/src/ApiResource/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)