|
4 | 4 |
|
5 | 5 | API Platform embraces and extends the Symfony Serializer Component to transform PHP entities in (hypermedia) API responses.
|
6 | 6 |
|
7 |
| -<p align="center" class="symfonycasts"><a href="https://symfonycasts.com/screencast/api-platform/serializer?cid=apip"><img src="/docs/distribution/images/symfonycasts-player.png" alt="Serializer screencast"><br>Watch the Serializer screencast</a></p> |
| 7 | +<p align="center" class="symfonycasts"><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> |
8 | 8 |
|
9 | 9 | The main serialization process has two stages:
|
10 | 10 |
|
@@ -32,7 +32,7 @@ JSON-LD, or JavaScript Object Notation for Linked Data, is a method of encoding
|
32 | 32 |
|
33 | 33 | ## The Serialization Context, Groups and Relations
|
34 | 34 |
|
35 |
| -<p align="center" class="symfonycasts"><a href="https://symfonycasts.com/screencast/api-platform/serialization-groups?cid=apip"><img src="/docs/distribution/images/symfonycasts-player.png" alt="Serialization Groups screencast"><br>Watch the Serialization Groups screencast</a></p> |
| 35 | +<p align="center" class="symfonycasts"><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> |
36 | 36 |
|
37 | 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.
|
38 | 38 | It relies on the [serialization (and deserialization) groups](https://symfony.com/doc/current/components/serializer.html#attributes-groups)
|
@@ -300,7 +300,7 @@ Refer to the [operations](operations.md) documentation to learn more.
|
300 | 300 |
|
301 | 301 | ## Embedding Relations
|
302 | 302 |
|
303 |
| -<p align="center" class="symfonycasts"><a href="https://symfonycasts.com/screencast/api-platform/relations?cid=apip"><img src="http://github.com/%3Cspan%20class="x x-first x-last">/docs/distribution/images/symfonycasts-player.png" alt="Relations screencast"><br>Watch the Relations screencast</a></p> |
| 303 | +<p align="center" class="symfonycasts"><a href="https://symfonycasts.com/screencast/api-platform/relations?cid=apip"><img src="http://github.com/%3Cspan%20class="x x-first x-last">../distribution/images/symfonycasts-player.png" alt="Relations screencast"><br>Watch the Relations screencast</a></p> |
304 | 304 |
|
305 | 305 | By default, the serializer provided with API Platform represents relations between objects using [dereferenceable IRIs](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier).
|
306 | 306 | They allow you to retrieve details for related objects by issuing extra HTTP requests. However, for performance reasons, it is sometimes preferable to avoid forcing the client to issue extra HTTP requests.
|
@@ -777,7 +777,7 @@ App\Entity\Greeting:
|
777 | 777 |
|
778 | 778 | ## Changing the Serialization Context Dynamically
|
779 | 779 |
|
780 |
| -<p align="center" class="symfonycasts"><a href="https://symfonycasts.com/screencast/api-platform-security/service-decoration?cid=apip"><img src="http://github.com/%3Cspan%20class="x x-first x-last">/docs/distribution/images/symfonycasts-player.png" alt="Context Builder & Service Decoration screencast"><br>Watch the Context Builder & Service Decoration screencast</a></p> |
| 780 | +<p align="center" class="symfonycasts"><a href="https://symfonycasts.com/screencast/api-platform-security/service-decoration?cid=apip"><img src="http://github.com/%3Cspan%20class="x x-first x-last">../distribution/images/symfonycasts-player.png" alt="Context Builder & Service Decoration screencast"><br>Watch the Context Builder & Service Decoration screencast</a></p> |
781 | 781 |
|
782 | 782 | Let's imagine a resource where most fields can be managed by any user, but some can be managed only by admin users:
|
783 | 783 |
|
|
0 commit comments