use ngresource for REST