So what I'm expecting is when Angular 6 app request with GET Method, sending a list or array of unique identifier as a parameter to the ASP.NET Core web API, then ASP.NET Core will bring information only relevant to the array of unique identifier back to the angular app.
My web API code looks something like this.
[HttpGet]
public ActionResult GetByGuids(List<Guid> Guids)
{
// some code here...
return Ok(_someService.someAction(Guids));
//Guids will be passed as a parameter to the function of service layer
}
According to my own research, I cannot add the array of unique identifier to the body because this is GET method.
I have to add [FromQuery] since it produces an error if I don't add it when a parameter is array or list.
If [FromQuery] is the only way to deal with this situation, then I have no idea how I should write the code for Angular.
Please help.
Thank you in advance.