I am working with an Asp.Net Core Web API and Angular framework.
One of my actions retrieves values using the following code:
[HttpGet]
public ActionResult<IEnumerable<MyModel>> Get([FromBody] MyParameter parameter) { ... }
My client application calls the API like this:
return this.httpClient.get<MyModel[]>(`${environment.api}values`);
How can I set the Body in the API call?
Thanks