|
4 | 4 |
|
5 | 5 | API Platform embraces and extends the Symfony Serializer Component to transform PHP entities in (hypermedia) API responses.
|
6 | 6 |
|
7 |
| -[](https://symfonycasts.com/screencast/api-platform/serializer?cid=apip) |
8 |
| -[Watch the Serializer screencast on SymfonyCasts](https://symfonycasts.com/screencast/api-platform/serializer?cid=apip) |
| 7 | +<p align="center"><a href="https://symfonycasts.com/screencast/api-platform/serializer?cid=apip"><img src="../distribution/images/symfonycasts-player.png" alt="Serializer screencast"><br>Watch the Serializer screencast</a></p> |
9 | 8 |
|
10 | 9 | The main serialization process has two stages:
|
11 | 10 |
|
@@ -33,7 +32,7 @@ JSON-LD, or JavaScript Object Notation for Linked Data, is a method of encoding
|
33 | 32 |
|
34 | 33 | ## The Serialization Context, Groups and Relations
|
35 | 34 |
|
36 |
| -[Watch the Serialization Groups screencast on SymfonyCasts](https://symfonycasts.com/screencast/api-platform/serialization-groups?cid=apip) |
| 35 | +<p align="center"><a href="https://symfonycasts.com/screencast/api-platform/serialization-groups?cid=apip"><img src="../distribution/images/symfonycasts-player.png" alt="Serialization Groups screencast"><br>Watch the Serialization Groups screencast</a></p> |
37 | 36 |
|
38 | 37 | API Platform allows you to specify the `$context` variable used by the Symfony Serializer. This variable is an associative array that has a handy `groups` key allowing you to choose which attributes of the resource are exposed during the normalization (read) and denormalization (write) processes.
|
39 | 38 | It relies on the [serialization (and deserialization) groups](https://symfony.com/doc/current/components/serializer.html#attributes-groups)
|
@@ -211,8 +210,7 @@ Refer to the [operations](operations.md) documentation to learn more.
|
211 | 210 |
|
212 | 211 | ### Embedding Relations
|
213 | 212 |
|
214 |
| -[](https://symfonycasts.com/screencast/api-platform/relations?cid=apip) |
215 |
| -[Watch the Relations screencast on SymfonyCasts](https://symfonycasts.com/screencast/api-platform/relations?cid=apip) |
| 213 | +<p align="center"><a href="https://symfonycasts.com/screencast/api-platform/relations?cid=apip"><img src="../distribution/images/symfonycasts-player.png" alt="Relations screencast"><br>Watch the Relations screencast</a></p> |
216 | 214 |
|
217 | 215 | By default, the serializer provided with API Platform represents relations between objects using [dereferenceable IRIs](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier).
|
218 | 216 | They allow you to retrieve details for related objects by issuing extra HTTP requests.
|
|
0 commit comments