I have to pass the parameters to the body and not the query. I tried it like this.
const fetch=async()=>{
  let res =  await
    apiCall("URL" + {
      "companyArr":["SBI Life Insurance Company Ltd.","NTPC Ltd"],
      "secodeArr":["NSE","NSE"],
      "startDate":"Jul 1, 2022",
      "endDate":"Jul 13, 2022"
  },
  "GET",null)
console.log(res);
if (res.status === 200) {
    console.log(res.data.data);
}
  }
But I am getting 'Request failed with status code 404' error message. What is the correct way to go about this?
 
     
    