Build REST APIs with Symfony2