Routing is how ASP.NET Core decides which piece of your code handles a given URL and HTTP method. Once a request is matched, the framework binds values from the route, query string, and body into your handler's parameters — and your handler can be either a lightweight Minimal API endpoint or a method on a controller.
This module starts by building a Minimal API from scratch, then covers routing in depth: route templates, attribute-based versus convention-based routing, and HTTP methods. A lesson on model binding explains how data from the request reaches your code, and the module closes by comparing Minimal APIs and controllers so you can choose the right style for each project.
Watch the lessons in order, then continue on to Dependency Injection & Configuration.
A hands-on tutorial on the basics of building a minimal API, which is designed to create HTTP APIs with minimal dependencies.
How routing works in ASP.NET Core Web API, with examples of attribute-based and convention-based routing, route templates, and HTTP methods.
A deep dive into model binding in Web APIs, breaking down the differences between [FromQuery], [FromBody], and [FromForm] and when to use each.
A comparison of the two ways to build APIs in ASP.NET Core, and how to decide between them. Microsoft recommends Minimal APIs for new projects, but controllers are still widely used in existing code.