Skip to content

Commit 323f40d

Browse files
soyukateohhanhui
andauthored
Update core/operations.md
Co-Authored-By: Teoh Han Hui <[email protected]>
1 parent 49af4cd commit 323f40d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/operations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Or the XML configuration format:
134134
API Platform Core is smart enough to automatically register the applicable Symfony route referencing a built-in CRUD action
135135
just by specifying the method name as key, or by checking the explicitly configured HTTP method.
136136

137-
If you want to completely remove item operations, you have to declare a default GET operation so that the resource can still be identified by an IRI. For example:
137+
If you do not want to allow access to the resource item (i.e. you don't want a `GET` item operation), instead of omitting it altogether, you should instead declare a `GET` item operation which returns HTTP 404 (Not Found), so that the resource item can still be identified by an IRI. For example:
138138

139139
```
140140
<?php

0 commit comments

Comments
 (0)