Skip to content

Commit 65f469e

Browse files
committed
Update SymfonyCasts player
1 parent 529f12a commit 65f469e

17 files changed

+20
-38
lines changed

core/content-negotiation.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ Using the raw JSON or raw XML formats is discouraged, prefer using JSON-LD inste
99

1010
API Platform also supports [JSON Merge Patch (RFC 7396)](https://tools.ietf.org/html/rfc7396) the JSON:API [`PATCH`](https://tools.ietf.org/html/rfc5789) formats, as well as [Problem Details (RFC 7807)](https://tools.ietf.org/html/rfc7807), Hydra and JSON:API error formats.
1111

12-
[![Formats screencast](../distribution/images/symfonycasts-player.png)](https://symfonycasts.com/screencast/api-platform/formats?cid=apip)
13-
[Watch the Formats screencast on SymfonyCasts](https://symfonycasts.com/screencast/api-platform/formats?cid=apip)
12+
<p align="center"><a href="https://symfonycasts.com/screencast/api-platform/formats?cid=apip"><img src="../distribution/images/symfonycasts-player.png" alt="Formats screencast"><br>Watch the Formats screencast</a></p>
1413

1514
API Platform Core will automatically detect the best resolving format depending on:
1615

core/extending-jsonld-context.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
## JSON-LD
44

5-
[![Watch the JSON-LD screencast on SymfonyCasts](../distribution/images/symfonycasts-player.png)](https://symfonycasts.com/screencast/api-platform/json-ld?cid=apip)
6-
[Watch the JSON-LD screencast on SymfonyCasts](https://symfonycasts.com/screencast/api-platform/json-ld?cid=apip)
5+
<p align="center"><a href="https://symfonycasts.com/screencast/api-platform/json-ld?cid=apip"><img src="../distribution/images/symfonycasts-player.png" alt="JSON-LD screencast"><br>Watch the JSON-LD screencast</a>
76

87
API Platform Core provides the possibility to extend the JSON-LD context of properties. This allows you to describe JSON-LD-typed
98
values, inverse properties using the `@reverse` keyword and you can even overwrite the `@id` property this way. Everything you define
@@ -72,9 +71,7 @@ Note that you do not have to provide the `@id` attribute. If you do not provide
7271

7372
## Hydra
7473

75-
[Watch the Hydra screencast on SymfonyCasts](https://symfonycasts.com/screencast/api-platform/hydra?cid=apip):
76-
77-
[![Watch the Hydra screencast](../distribution/images/symfonycasts-player.png)](https://symfonycasts.com/screencast/api-platform/hydra?cid=apip)
74+
<p align="center"><a href="https://symfonycasts.com/screencast/api-platform/hydra?cid=apip"><img src="../distribution/images/symfonycasts-player.png" alt="Hydra screencast"><br>Watch the Hydra screencast</a></p>
7875

7976
It's also possible to replace the Hydra context used documentation generator:
8077

core/filters.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ By default, all filters are disabled. They must be enabled explicitly.
1212
When a filter is enabled, it automatically appears in the [OpenAPI](swagger.md) and [GraphQL](graphql.md) documentations.
1313
It is also automatically documented as a `hydra:search` property for JSON-LD responses.
1414

15-
[![Filtering & Searching screencast](../distribution/images/symfonycasts-player.png)](https://symfonycasts.com/screencast/api-platform/filters?cid=apip)
16-
[Watch the Filtering & Searching screencast on SymfonyCasts](https://symfonycasts.com/screencast/api-platform/filters?cid=apip)
15+
<p align="center"><a href="https://symfonycasts.com/screencast/api-platform/json-ld?cid=apip"><img src="../distribution/images/symfonycasts-player.png" alt="Filtering and Searching screencast"><br>Watch the Filtering & Searching screencast</a>
1716

1817
## Doctrine ORM and MongoDB ODM Filters
1918

core/fosuser-bundle.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ Note: FOSUserBundle is not well suited for APIs. We strongly encourage you to us
77
shipped with Symfony or to [create a custom user provider](https://symfony.com/doc/current/security/user_provider.html#creating-a-custom-user-provider)
88
instead of using this bundle.
99

10-
[![User screencast](../distribution/images/symfonycasts-player.png)](https://symfonycasts.com/screencast/api-platform/user-entity?cid=apip)
11-
[Watch the "Create a user entity" (without FOSUser) screencast on SymfonyCasts](https://symfonycasts.com/screencast/api-platform/user-entity?cid=apip)
10+
<p align="center"><a href="https://symfonycasts.com/screencast/api-platform/user-entity?cid=apip"><img src="../distribution/images/symfonycasts-player.png" alt="User Entity screencast"><br>Watch the User Entity screencast</a></p>
1211

1312
## Installing the Bundle
1413

core/getting-started.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ and what [JSON-LD](http://json-ld.org/) and [Hydra](http://www.hydra-cg.com/) fo
2424

2525
## Mapping the Entities
2626

27-
[![Watch the "create an API resource" screencast on SymfonyCasts](../distribution/images/symfonycasts-player.png)](https://symfonycasts.com/screencast/api-platform/api-resource?cid=apip)
28-
[Watch the "create an API resource" screencast on SymfonyCasts](https://symfonycasts.com/screencast/api-platform/api-resource?cid=apip)
27+
<p align="center"><a href="https://symfonycasts.com/screencast/api-platform/api-resource?cid=apip"><img src="../distribution/images/symfonycasts-player.png" alt="Create an API Resource screencast"><br>Watch the Create an API Resource screencast</a></p>
2928

3029
API Platform Core is able to automatically expose entities mapped as "API resources" through a REST API supporting CRUD
3130
operations.

core/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ This bundle is extensively tested (unit and functional). The [`Fixtures/` direct
4242

4343
## Screencasts
4444

45-
[![SymfonyCasts](../distribution/images/symfonycasts-player.png)](https://symfonycasts.com/tracks/rest?cid=apip#api-platform)
45+
<p align="center"><a href="https://symfonycasts.com/tracks/rest?cid=apip#api-platform"><img src="../distribution/images/symfonycasts-player.png" alt="API Platform screencasts"></a></p>
4646

4747
The easiest and funniest way to learn how to use API Platform is to watch [the more than 60 screencasts available on SymfonyCasts](https://symfonycasts.com/tracks/rest?cid=apip#api-platform)!

core/operations.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
API Platform Core relies on the concept of operations. Operations can be applied to a resource exposed by the API. From
44
an implementation point of view, an operation is a link between a resource, a route and its related controller.
55

6-
[![operations screencast](../distribution/images/symfonycasts-player.png)](https://symfonycasts.com/screencast/api-platform/operations?cid=apip)
7-
[Watch the "operations" screencast on SymfonyCasts](https://symfonycasts.com/screencast/api-platform/operations?cid=apip)
6+
<p align="center"><a href="https://symfonycasts.com/screencast/api-platform/operations?cid=apip"><img src="../distribution/images/symfonycasts-player.png" alt="Operations screencast"><br>Watch the Operations screencast</a></p>
87

98
API Platform automatically registers typical [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) operations
109
and describes them in the exposed documentation (Hydra and Swagger). It also creates and registers routes corresponding

core/pagination.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Pagination
22

3-
[![Pagination screencast](../distribution/images/symfonycasts-player.png)](https://symfonycasts.com/screencast/api-platform/filters?cid=apip)
4-
[Watch the Pagination screencast on SymfonyCasts](https://symfonycasts.com/screencast/api-platform/filters?cid=apip)
3+
<p align="center"><a href="https://symfonycasts.com/screencast/api-platform/pagination?cid=apip"><img src="../distribution/images/symfonycasts-player.png" alt="Pagination screencast"><br>Watch the Pagination screencast</a></p>
54

65
API Platform Core has native support for paged collections. Pagination is enabled by default for all collections. Each collections
76
contains 30 items per page.

core/security.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ The API Platform security layer is built on top of the [Symfony Security compone
44
All its features, including [global access control directives](http://symfony.com/doc/current/book/security.html#securing-url-patterns-access-control) are supported.
55
API Platform also provides convenient [access control expressions](https://symfony.com/doc/current/expressions.html#security-complex-access-controls-with-expressions) which you can apply at resource and operation level.
66

7-
[![Security screencast](../distribution/images/symfonycasts-player.png)](https://symfonycasts.com/screencast/api-platform-security/?cid=apip)
8-
[Watch the Security screencast on SymfonyCasts](https://symfonycasts.com/screencast/api-platform-security/?cid=apip)
7+
<p align="center"><a href="https://symfonycasts.com/screencast/api-platform-security/?cid=apip"><img src="../distribution/images/symfonycasts-player.png" alt="Security screencast"><br>Watch the Security screencast</a>
98

109
```php
1110
<?php

core/serialization.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
API Platform embraces and extends the Symfony Serializer Component to transform PHP entities in (hypermedia) API responses.
66

7-
[![serializer screencast](../distribution/images/symfonycasts-player.png)](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>
98

109
The main serialization process has two stages:
1110

@@ -33,7 +32,7 @@ JSON-LD, or JavaScript Object Notation for Linked Data, is a method of encoding
3332

3433
## The Serialization Context, Groups and Relations
3534

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>
3736

3837
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.
3938
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.
211210

212211
### Embedding Relations
213212

214-
[![Relations screencast](../distribution/images/symfonycasts-player.png)](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>
216214

217215
By default, the serializer provided with API Platform represents relations between objects using [dereferenceable IRIs](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier).
218216
They allow you to retrieve details for related objects by issuing extra HTTP requests.

0 commit comments

Comments
 (0)