It's problem as this
I add Token (http://www.django-rest-framework.org/api-guide/authentication/#tokenauthentication) in Headers but still get 401 How it fix?
UPDATE 1:
$http.post("<URL>/api/token-auth/", transformRequest({username: "newuser", "password": "newuser"}))
.success(function(result){
$scope.token = result.token;
$http.defaults.headers.common = {
'Authorization': "Token " + $scope.token,
'Accept': 'application/json;odata=verbose'
};
$http.get(<URL>/urls/, transformRequest({name: name}))
.success(getApiData);
});