Skip to content

Commit 136237f

Browse files
remove useless config and improve mapping need explaination
1 parent 85c2ac8 commit 136237f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ If and only if you are using the XML or the YAML, you need to tell API Platform
203203
api_platform:
204204
mapping:
205205
paths:
206-
- '%kernel.project_dir%/src/Entity' # default configuration
207-
- '%kernel.project_dir%/config/api_platform' # my
206+
- '%kernel.project_dir%/src/Entity' # default configuration for annotations
207+
- '%kernel.project_dir%/config/api_platform' # yaml or xml directory configuration
208208
```
209209
210-
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).
210+
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).
211211

212212
**You're done!**
213213

0 commit comments

Comments
 (0)