Angularjs REST API example