How to send delete request to REST api using angular?
I want send delete with id: 1
I try:
this.http.delete(environment.apiUrl+"id="+1).subscribe(data => {
});
Where http is private http: HttpClient, but it not working.
Value of environment.apiUrl is http://localhost/deleteendpoint
environment.apiUrl??is missing. Try withthis.http.delete(environment.apiUrl+"?id="+1).subscribe(data=>{});