Training REST API with Symfony 2 & AngularJS