I wrote the following get api Route in C# that looks like the following...
[HttpGet]
[Route("ReadAllAppBased")]
public List<Feedback> ReadAllAppBased(IEnumerable<string> Apps, string CAT)
{
return null;
}
but when I send a HTTP Request in JS I am not able to see my Collection. Please see the following code for JS. following...
axios.get('http://localhost:63464/api/FeedBack/ReadAllAppBased',
{
params: { Apps: ["TESTING 3", "TESTING 123"], CAT: "TESTING" }
})
.then(res => {
return res.data;
})
.then(res => {
console.table(res);
});
Please know that I am hitting the call in C#. I am not able to see the data coming in for Apps. I am able to see data for CAT.
Would like to know how I can fix this as I need to be able to send a Collection of string that needs to be received in C# from JS.