Метод | Описание | |
---|---|---|
getUserAction ( integer $id ) : array | Get single User. | |
getUsersAction ( |
List all Users. | |
newUserAction ( ) : Symfony\Component\Form\FormTypeInterface | Presents the form to use to create a new User. | |
patchUserAction ( |
Update existing user from the submitted data or create a new user at a specific location. | |
postUserAction ( |
Create a User from the submitted data. | |
putUserAction ( |
Update existing User from the submitted data or create a new User at a specific location. |
Метод | Описание | |
---|---|---|
getOr404 ( mixed $id ) : |
Fetch a User or throw an 404 Exception. |
public getUserAction ( integer $id ) : array | ||
$id | integer | the User id |
Результат | array |
public getUsersAction ( |
||
$request | the request object | |
$paramFetcher | FOS\RestBundle\Request\ParamFetcherInterface | param fetcher service |
Результат | array |
public newUserAction ( ) : Symfony\Component\Form\FormTypeInterface | ||
Результат | Symfony\Component\Form\FormTypeInterface |
public patchUserAction ( |
||
$request | the request object | |
$id | integer | the user id |
Результат | Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View |
public postUserAction ( |
||
$request | the request object | |
Результат | Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View |
public putUserAction ( |
||
$request | the request object | |
$id | integer | the User id |
Результат | Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View |