I'm trying to send a request to the server with 4 parameters. It seems to work with less than 4, but I cannot get it to work with 4 or more. Here are the snippets:
historyy: $resource('/history/:user.:item.:count.:cost', {
user: '@userr',
item: '@itemm',
count: '@countt',
cost: '@costt'
}
Calling RestService:
RestServices.historyy.get({userr: "Asd",itemm: $scope.item.id,countt: amount,costt: '0' });
When I execute this, the URL looks like this:
http://localhost:8080/history/...?costt=0&countt=6&itemm=1&userr=Asd
Why is it adding these crazy (...?) ?. When I remove one of the parameter (no matter which one) it works properly.