Minimal APIs
Minimal APIs: Your First Minimal API.
Updated
- Your First Minimal API (Apprentice): A minimal API maps each address and method straight to a lambda in Program.cs, with MapGet, MapPost, MapPut and MapDelete. The lambda's parameters come from the route and the body, and Results.NotFound(), Results.Created() and friends choose the status code.