One concept per page
Each page starts with the complete finished code, then breaks it down section by section and highlights the lines added in that chapter. You will not be buried under ten new terms at once.
Already code, but new to C#? Learn .NET 10 and Minimal APIs one concept at a time, with a complete runnable project in every chapter.
A 30-second preview
This is the program you will write by the end of Chapter 02: an endpoint that returns JSON, plus automatically generated interactive API documentation. There is no configuration file to edit and no boilerplate class to inherit from.
About the samples
Both editions use the same runnable projects. Code comments, sample data, and application messages are in English, so commands and responses match in either edition.
dotnet new web command creates a minimal web projectMapGet connects a URL to an ordinary function, and the return value is serialized to JSON automaticallydotnet watch starts the service and applies supported code changes with hot reload/scalar to test your endpoint directly in the browserusing Scalar.AspNetCore;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddOpenApi();
var app = builder.Build();
if (app.Environment.IsDevelopment())
{
app.MapOpenApi();
app.MapScalarApiReference();
}
app.MapGet("/", () => new { Message = "Hello, ASP.NET Core!" });
app.Run();Learning path
Later chapters build on earlier ones: EF Core uses dependency injection, and authentication uses middleware. The tutorial follows a single sequence, so we recommend reading it in order.
Set up your tools, meet C#, and run your first endpoint
Read request data and return useful responses
Connect services, manage configuration, and understand the pipeline
Store data in SQLite with EF Core and build a complete API
Identify callers and decide what they can do
Test your API, organize its code, and deploy it