http://welcometothebundle.com/symfony2-rest-api-the-best-2013-way