Caffeinated Coder
Book an appointment
Lesson 23 · Advanced .NET

Building a web API with ASP.NET Core

A web API is a program that answers HTTP requests from other programs with data, usually JSON. Build a whole to-do API in nine lines of C# with ASP.NET Core minimal APIs, then follow real requests through it: Kestrel reads the request, routing picks the endpoint by method and path, System.Text.Json turns the body into a Todo, the handler adds it to a list, and the result goes back as 201 Created, 200 OK, 405 or 404.

14 min12 steps5 questionsAdvanced
Fig 23 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.