PHP MySQL API Consumed with AngularJS