Example of an AngularJS front-end and a PHP REST api