I am trying to retrieve list . I used below code
$http({
method: 'GET',
url: _spPageContextInfo.webAbsoluteUrl + "/Lists/MyList",
headers: { "Accept": "application/json;odata=verbose" }
}).success(function (data, status, headers, config) {
debugger;
$scope.customers = data.d.results;
}).error(function (data, status, headers, config) {
});
But when code executes i get wiered data in data variable. I get information of whole page which is all html. What am i doing wrong?