I have used REST API for POST request. When i click on addmode() , it will going to display textbox and on click of save() button the data should get posted. But when i click save() , I am  getting error call and re-directing to PUT Request.
Angular Js :
         $scope.addmode = function(information) {
            var postinfo = information;
           $http({
                url:'http://localhost:3000/contacts' , 
                method : 'POST',
                data : postinfo
            })
            .then(
                function successCallback(response) {
                    $scope.selectedcontact = '';
                    console.log(response.data)
                },
                function errorCallback(response) {
                    console.log("Error : " + response.data);
                });    
            };   
 
    