use AngularJS framework to test RESTful API