Skip to content

Minimal APIs

var app = WebApplication.CreateBuilder(args).Build();
app.MapGet("/hello", () => new { message = "world" });
app.Run();

Notes

  • Great for microservices; add filters, auth, and validation as needed.