Skip to content

Commit 3d5fd2f

Browse files
committed
8 verbs not 5, options not option
1 parent 7548356 commit 3d5fd2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Resources/doc/5-automatic-route-generation_single-restful-controller.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class FooController
195195

196196
### REST Actions
197197

198-
There are 5 actions that have special meaning in regards to REST and have the following behavior:
198+
There are 8 actions that have special meaning in regards to REST and have the following behavior:
199199

200200
* **get** - this action accepts *GET* requests to the url */resources* and returns all resources for this type. Shown as
201201
``UsersController::getUsersAction()`` above. This action also accepts *GET* requests to the url */resources/{id}* and
@@ -210,8 +210,8 @@ type. Shown as ``UsersController::deleteUserAction()`` above.
210210
of resources (e.g. apply batch modifications to subset of resources). Shown as ``UsersController::patchUsersAction()`` above.
211211
This action also accepts *PATCH* requests to the url */resources/{id}* and is supposed to partially modify the resource.
212212
Shown as ``UsersController::patchUserAction()`` above.
213-
* **option** - this action accepts *OPTION* requests to the url */resources* and is supposed to return a list of REST
214-
resources that the user has access to. Shown as ``UsersController::userAction()`` above.
213+
* **options** - this action accepts *OPTIONS* requests to the url */resources* and is supposed to return a list of REST
214+
resources that the user has access to. Shown as ``UsersController::optionsUsersAction()`` above.
215215
* **link** - this action accepts *LINK* requests to the url */resources/{id}* and is supposed to return nothing but a
216216
status code indicating that the specified resources were linked. It is used to declare a resource as related to an other one.
217217
When calling a LINK url you must provide in your header at least one link header formatted as follow :

0 commit comments

Comments
 (0)