I need to do a delete request that takes 2 parameters, but I'm not really sure how to do it.
my code looks like this:
public deleteDefinition(typeName: string, id: number) {
console.log("in API call");
const path = `${this.apiEndpoint}/Definition/Delete/`;
return this.http.delete(path, typeName, id)
.map((response: Response) => response.json())
.catch(this.handleError);
}
But I keep receiving the errror
Supplied parameters do not match any signature of call target.
What is wrong with my syntax?
Thanks in advance!
http.delete(url, options). You should include theidin the url. As for yourtypeNameparam, I don't know what it means.return this.http.delete(path)however, nothing happens. in my console I can't even see the request, so is it not doing the call at all?XXX.deleteDefinition(a, b).subscribe()?