you can pass body in httpdelete with options
let apiUrl = 'yourUrl';
let transactions = [{
"eventId": "21012200237172",
"productCode": "LC",
"id": "LC20110000090023"
}];
const options = {
headers: new HttpHeaders({
'Content-Type': 'application/json',
}),
body: {
transactions: transactions
},
};
this.httpClient
.delete(apiUrl, options)
.subscribe((s) => {
console.log(s);
},err => {
console.log(err);
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…