Getting error when I try to execute GET Method,
TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body.
SOLUTION : Example
[HttpGet]
[Route("Appointment")]
[SwaggerOperation(Tags = new[] { "Hospital/Scheduling" })]
public ActionResult<List<Appointment>> GetAppointmentsV1([FromBody] GetAppointmentsRequest request)
{
try
{
var result = appointmentApi.GetAppointments(request);
return result.Result;
}
catch (Exception Ex)
{
throw Ex;
}
}
Change [FromBody] to [FromQuery]