Skip to content

Commit 245b387

Browse files
Add default configuration
1 parent 3a43069 commit 245b387

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/getting-started.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ And tell your configuration how to load it:
202202
# api/config/packages/api_platform.yaml
203203
api_platform:
204204
mapping:
205-
paths: ['%kernel.project_dir%/config/api_platform']
205+
paths:
206+
- '%kernel.project_dir%/src/Entity'
207+
- '%kernel.project_dir%/config/api_platform'
206208
```
207209
208210
Note that the resources configuration only support the normalization / denormalization context definition in `yaml` and `xml`. To configure the groups of serialization for each attribute, you need to define your groups like you would usually on a standard Symfony project. See the [Symfony doc](https://symfony.com/doc/current/components/serializer.html#attributes-groups).

0 commit comments

Comments
 (0)