users:
type: rest
host: localhost
resource: AppBundle\Controller\UserController
public function newUserAction()
{
$user = new User();
$form = $this->createForm(RegistrationFormType::class,$user);
return $this->render('default/new.html.twig', array(
'form' => $form->createView(),
));
}
public function newUsersAction()
{} // "new_users" [GET] /users/new