http service
API Service
HTML
<div ng-controller="myCtrl">
</div>
JavaScript
var myApp = angular.module('myApp', []);
myApp.controller('myCtrl', ['$scope','$http', function($scope, $http){
$http({
method: 'GET',
url: 'https://onecsitmappssrvs.cognizant.com/2185/Trutimeapi/TruTimeTopUp/GetMonthTopUpDetails'
}).success(function(response, status, headers, config){
console.log(config)
}).error(function(error){
console.log(error)
});
}]);