You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once registered as an `ApiResource`, having an existing person, it will be accessible through the following URL:`/people/110e8400-e29b-11d4-a716-446655440000`.
60
-
Note that the property identifying our resource is named `code`.
61
+
Once registered as an `ApiResource`, having an existing person, it will be accessible through the following URL:
62
+
`/people/110e8400-e29b-11d4-a716-446655440000`. Note that the property identifying our resource is named `code`.
61
63
62
-
Let's create a `Provider` for the `Person`entity:
64
+
Let's create a `Provider` for the `Person`resource:
63
65
64
66
```php
65
67
<?php
66
-
// api/src/State/PersonProvider.php
68
+
// api/src/State/PersonProvider.php with Symfony or app/State/PersonProvider.php with Laravel
67
69
68
70
namespace App\State;
69
71
70
-
use App\Entity\Person;
72
+
use App\ApiResource\Person;
71
73
use ApiPlatform\Metadata\Operation;
72
74
use ApiPlatform\State\ProviderInterface;
73
75
use App\Uuid;
@@ -92,7 +94,7 @@ This case is covered by an URI variable transformer:
0 commit comments