A simple AngularJs Restful application using PHP, MongoDB & AngularJS - API Part