Prototype of an API in Symfony2