RESTful APIs with Symfony2