Skip to content

Commit 5c4bc60

Browse files
authored
fix(operations): replace "Book" by "User" for YAML and XML examples (#1652)
The .yaml and .xml examples for defining which operation to use to generate the IRI contain previous versions configurations ("App\Entity\Book" instead of "App\Entity\User").
1 parent 3050bed commit 5c4bc60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/operations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ class User
485485
```yaml
486486
# api/config/api_platform/resources.yaml
487487
resources:
488-
App\Entity\Book:
488+
App\Entity\User:
489489
- operations:
490490
ApiPlatform\Metadata\GetCollection: ~
491491
ApiPlatform\Metadata\Get: ~
@@ -511,14 +511,14 @@ resources:
511511
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
512512
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
513513
https://api-platform.com/schema/metadata/resources-3.0.xsd">
514-
<resource class="App\Entity\Book">
514+
<resource class="App\Entity\User">
515515
<operations>
516516
<operation class="ApiPlatform\Metadata\GetCollection" />
517517
<operation class="ApiPlatform\Metadata\Get" />
518518
</operations>
519519
</resource>
520520
521-
<resource class="App\Entity\Book">
521+
<resource class="App\Entity\User">
522522
<operations>
523523
<operation class="ApiPlatform\Metadata\GetCollection" uriTemplate="/companies/{companyId}/users" itemUriTemplate="/companies/{companyId}/users/{id}" />
524524
<operation class="ApiPlatform\Metadata\Post" uriTemplate="/companies/{companyId}/users" itemUriTemplate="/companies/{companyId}/users/{id}" />

0 commit comments

Comments
 (0)