Building the Resource API in Symfony