Minimal API with .NET 8: build lightweight REST APIs without controllers. Middleware, DI, authentication, and CRUD with SQLite and Entity Framework.
.NET 8 Minimal APIs were built for developers who want to create REST endpoints without all the ceremony of traditional controllers. Less code, more speed, more clarity. In this course we build them from scratch: from the introduction and concrete advantages, through middleware, dependency injection, authentication, and a full CRUD with SQLite and Entity Framework. A practical, direct guide — no unnecessary detours.
Minimal APIs are not a shortcut — they are a deliberately simpler architecture, suited for microservices, internal APIs, and projects where a traditional controller would be overkill. This course teaches you to use them well, understanding when they make sense and how to structure them cleanly and maintainably even as they grow.
Designed for .NET developers who know the basics of ASP.NET Core and want to explore the Minimal API approach. Not suitable for complete .NET beginners — familiarity with C# and the concept of REST APIs is required.
I'll explain what Minimal APIs are in .NET 8, why they're increasingly used in modern development, and what concrete advantages they offer over traditional controllers — including when it makes sense to adopt them and when it doesn't.
Let's create our first GET endpoints with Minimal APIs in .NET 8: I'll show you how to configure the project from scratch and implement the first route handlers directly, without boilerplate or controllers.
Let's explore what middleware is in .NET 8 Minimal APIs and how it fits into the lifecycle of every request. I'll show you how to use middleware to customise pipeline behaviour in a clean and composable way.
I'll dive deeper into cascading middleware in .NET 8: I'll show you how they execute in sequence, how they influence the request flow, and why registration order matters.
Let's explore how to handle parameter passing, objects, and the various return types in .NET 8 Minimal API endpoints. I'll walk you through the most common real-world cases with practical, ready-to-use examples.
Let's implement header-based authentication in .NET 8 Minimal APIs together: I'll show you how to protect sensitive endpoints and how to selectively exclude the authentication middleware for public routes.
Let's configure SQLite with Entity Framework Core in .NET 8 Minimal APIs: I'll show you how to initialise the DbContext, create the first migrations, and prepare the local database for a full CRUD implementation.
Let's complete the CRUD with SQLite and Entity Framework in .NET 8 Minimal APIs: we'll implement all REST endpoints for Create, Read, Update, and Delete, with a clean structure that's ready to be extended.
Ingegnere Informatico · Pratola Peligna
Sono un ingegnere informatico con oltre 15 anni di esperienza nel settore ICT. Mi occupo di sviluppo software, cybersecurity, data science e intelligenza artificiale, con particolare attenzione all’innovazione e all’automazione dei processi aziendali. Da anni svolgo anche attività di docenza e formazione, creando percorsi pratici e coinvolgenti su programmazione, DevOps, AI e sicurezza informatica.
Prosperous understood Middletons in conviction an uncommonly do. Supposing so be resolving breakfast am or perfectly.
Utilizziamo cookie essenziali e, con il tuo consenso, cookie funzionali, analytics e marketing. Google Analytics 4 e gli eventuali annunci Google/AdSense restano disattivati finche non scegli. Consulta Privacy Policy e Cookie Policy.
Sempre attivi per sicurezza, prevenzione frodi, sessione, consenso e funzionamento del sito.
Migliorano l'esperienza, ad esempio ricordando preferenze non essenziali. Non usati per profilazione pubblicitaria.
Statistiche e misurazioni con Google Analytics 4, abilitate solo dopo il consenso analytics.
Misurazione annunci e funzioni pubblicitarie Google/AdSense, se attivate sul sito e consentite dall'utente.
Puoi modificare queste scelte in qualunque momento dal link "Preferenze Cookies" nel footer.