Hello, I am using restangular to get data from the server, but when I try to send the request I got an error message
Failed to load resource: the server responded with a status of 404 (Not Found) at http://localhost:8080/axxyr/rest/login/user in the config part I put RestangularProvider.setBaseUrl("/axxyr"); and my service looks like this: mainApp.factory('LoginService', ['Restangular', function (Restangular) { return { getUser: function (user) { alert('here'); var aPromise = Restangular.one("rest/login/user"); return aPromise.getList(); } }; }]); On the server side I have a class which should receive requests from the client: package axxyr.com.rest; import com.suppx.axxyr.object.User; import java.util.ArrayList; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; @Path("/login") public class LoginRestService { @GET @Path("/user") @Produces(MediaType.APPLICATION_JSON) public ArrayList<User> getUser() { System.out.println("test"); return null; } } What is the problem? Please, advise. Thanks -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
