Hi, I’m trying to do a delete request to my api but it returns that the parameters are missing:
this.http.delete(path, data,headers)
.then(response => {
return JSON.parse(response.data);
})
.catch(error => {return this.handleError(error)});
It seems that delete function not sends the body data. The same request with postman works fine.
With post, and put there are not problems, What would be the problem?
Sorry but I dont see how your answer would solve my problem. Is not a problem of how do the promise, on the original code i return the promise generated to other method with ‘return this.http.delete…’