-
Notifications
You must be signed in to change notification settings - Fork 180
Description
Assemblies affected
ASP.NET Core OData 8.x
Describe the bug
OData does not work with Minimal API, ie without Controllers
Reproduce steps
app.MapGet("/WeatherForecast", [EnableQuery] () => Enumerable.Range(1, 5).Select((int index) => new WeatherForecast
{
Date = DateTime.Now.AddDays(index),
TemperatureC = Random.Shared.Next(-20, 55),
Summary = new[] {
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
}
})
.ToArray());
app.Run();
Expected behavior
I would like to use OData without Controllers at all
WojciechNagorski, xshaheen, mmonteagudo, Tiberriver256, julealgon and 32 more