Skip to content

Commit b5a8728

Browse files
fix: code sample to disable GET item operation (#1394)
1 parent 3acfedd commit b5a8728

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/operations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ App\Entity\Book:
213213
get: ~
214214
itemOperations:
215215
get:
216-
controller: App\Controller\NotFoundAction
216+
controller: ApiPlatform\Core\Action\NotFoundAction
217217
read: false
218218
output: false
219219
```
@@ -232,7 +232,7 @@ App\Entity\Book:
232232
</collectionOperations>
233233
<itemOperations>
234234
<itemOperation name="get">
235-
<attribute name="controller">App\Controller\NotFoundAction</attribute>
235+
<attribute name="controller">ApiPlatform\Core\Action\NotFoundAction</attribute>
236236
<attribute name="read">false</attribute>
237237
<attribute name="output">false</attribute>
238238
</itemOperation>

0 commit comments

Comments
 (0)