minimal-apis Questions

1

My teacher told today that Minimal API allow start with minimal code and evolve the application with time in a way you end having a Controller folder and automatic routing as an traditional ASP.NET...

2

Solved

I'm new to Minimal API which is available in ASP.NET Core 6.0 and based on Microsoft's tutorials here and here, one can define a sample route for Get method like this: app.MapGet("/", () ...
Bristle asked 1/1, 2022 at 15:35

1

I am trying to call EF Core methods on application startup in my Program.cs file, using the .NET 6 minimal API template and get the following error: System.InvalidOperationException: 'Cannot resol...
Montemayor asked 16/12, 2021 at 22:29

1

Solved

I am using Net 6 Minimal APIs: application.MapGet("countries", async (IService service) => { var countries = await mediator.Send(request); return Results.Ok(countries); }); Is it po...
Eurhythmy asked 3/12, 2021 at 14:34

1

Solved

I have net6.0 project with minimal api and I would like to use NetwtonsoftJson instead of built in System.Text.Json library for serialization and deserialization. At the moment I have this configur...
Kirkman asked 5/11, 2021 at 9:17

© 2022 - 2025 — McMap. All rights reserved.