Skip to content

Commit 70d8133

Browse files
authored
docs: update item operation description, add merge PATCH (#1696)
1 parent ba4247e commit 70d8133

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
@@ -18,8 +18,8 @@ is also possible.
1818
There are two types of operations: collection operations and item operations.
1919

2020
Collection operations act on a collection of resources. By default two routes are implemented: `POST` and `GET`. Item
21-
operations act on an individual resource. Three default routes are defined: `GET`, `PUT` and `DELETE` (`PATCH` is also supported
22-
when [using the JSON:API format](content-negotiation.md), as required by the specification).
21+
operations act on an individual resource. Four default routes are defined: `GET`, `PUT`, `DELETE` and `PATCH`. `PATCH` is supported
22+
with [JSON Merge Patch (RFC 7396)](https://www.rfc-editor.org/rfc/rfc7386), or [using the JSON:API format](https://jsonapi.org/format/#crud-updating), as required by the specification.
2323

2424
When the `ApiPlatform\Metadata\ApiResource` annotation is applied to an entity class, the following built-in CRUD
2525
operations are automatically enabled:

0 commit comments

Comments
 (0)