REST API demo with symfony2 (Best practices)