I have a backend api where we send a request payload containing JSON data and it returns an excel file. When i try to send the data, in the network tab in request payload the JSON array is like
{"data":[{ JSON ARRAY ]}}
In my other API "data" is not there in any JSON array. How can i remove this?
ExcelReportDownload(data:any): Observable<any> {
return this.http.post<any>(this.baseURL + 'ExcelExport/ExcelExport/' , {data});
}
This it the API
`