Skip to content

ASP.NET Core Web API overview: reading path

This section covers building HTTP APIs with ASP.NET Core 10: how a request reaches your code, how to shape routes and responses, how to return consistent errors, and how to keep the public contract separate from the database. It assumes you know basic C# and have read What is .NET?.

Step Page What you get from it
1 ASP.NET Core Web API: controllers, routing, pipeline The request path from middleware to controller action, attribute routing, model binding and validation, problem details, IExceptionHandler, CORS, and when to choose controllers or Minimal APIs.
2 Entities vs DTOs Why the API contract should not be your EF Core entity, and how to map between them.
3 .NET core features Dependency injection lifetimes, middleware mechanics, Minimal APIs and Native AOT in more depth.
Topic Read
Controllers, attribute routes and route constraints Controllers and routing
Middleware order, problem details and exception handling Middleware and pipeline
Controllers or Minimal APIs Choosing between them
Request and response contracts Entities vs DTOs
Validation in Minimal APIs (.NET 10) Minimal APIs