rest_app with angular js