I have my web application deployed to tomcat with an applicatio context. For example my URL looks something like this.
http://localhost:8080/myapp
For AngularJS $http service you are good to go with url : 'getusers', as follows:
url : 'getusers'
$scope.postCall = function(obj) { $http({ method : 'POST', url : 'getusers', dataType : 'json', headers : { 'Content-Type' : 'application/json' }, data : obj, }); };