Skip to content

Commit cce2976

Browse files
jonagdunglas
authored andcommitted
The IRI for a resource is generated from an itemOperation (#449)
* The IRI for a resource is generated from an itemOperation * Actually the first collectionOperation is used to generate the IRI of a collection
1 parent 597f713 commit cce2976

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/operations.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,7 @@ automatically instantiated and injected, without having to declare it explicitly
486486
In the following examples, the built-in `GET` operation is registered as well as a custom operation called `special`.
487487
The `special` operation reference the Symfony route named `book_special`.
488488

489-
Note: By default, API Platform uses the first `GET` operation defined in `collectionOperations` to generate the IRI for
490-
a resource class.
489+
Note: By default, API Platform uses the first `GET` operation defined in `itemOperations` to generate the IRI of an item and the first `GET` operation defined in `collectionOperations` to generate the IRI of a collection.
491490

492491
Note: With custom operation, you will probably want to properly document it. See the [swagger](swagger.md) part of the documentation to do so.
493492

0 commit comments

Comments
 (0)