Your First Minimal API

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.

Updated

Cheat sheet: Your First Minimal API
Category
ASP.NET Core
Level
Apprentice
Tags
aspnet-core, Endpoint (rest-api), MapGet and MapPost, Minimal API, rest-api, Results and TypedResults, Web API