This is sample example to build a REST in PHP and bind it to angular.JS