Rest App Angularjs