Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
ASP.NET Core Minimal APIs for beginners (.NET 10)
Rating: 4.4 out of 5(24 ratings)
223 students

ASP.NET Core Minimal APIs for beginners (.NET 10)

Build a production-ready ASP.NET Core Web API with Entity Framework Core, Serilog, API key auth, and xUnit tests
Created byDavid Grace
Last updated 7/2026
English
English [Auto],

What you'll learn

  • Build a Minimal API from scratch using .NET 10 and Visual Studio 2026
  • Implement full CRUD functionality using GET, POST, PUT, and DELETE endpoints in Minimal APIs
  • Design and apply clean architecture principles to create a maintainable and scalable API
  • Integrate SQL Server using Entity Framework Core
  • Secure your API by adding authentication and authorization with an API key
  • Add structured and configurable logging to your Minimal APIs using Serilog
  • Test and explore your API endpoints effectively using Swagger
  • Write and run unit tests for your endpoints using xUnit v3 to ensure quality and reliability

Course content

8 sections • 29 lectures • 2h 43m total length
  • What are Minimal APIs?4:36

    Learn what minimal APIs are and how to create endpoints with minimal dependencies, enabling a clean to-do app with sql server integration, login, authorization, authentication, and unit testing.

  • What you should know1:48

    Learn the prerequisites for mastering minimal APIs in .NET 10, including C# fundamentals, RESTful API concepts, DI, EF Core, login and authentication, and Visual Studio basics.

  • Setup your environment5:59

    Install visual studio and the dotnet 10 sdk, set up sql server tools, then clone the repository with git and test the localdb connection.

Requirements

  • A solid understanding of C# fundamentals, including variables, fields, properties, and access modifiers
  • General knowledge of RESTful APIs and the differences between GET, POST, PUT, and DELETE methods
  • Basic familiarity with ASP.NET Core is helpful, but not required, as the course walks through building an application from scratch
  • Prior experience with ASP.NET or ASP.NET Core controllers is beneficial but not mandatory
  • Some exposure to concepts such as dependency injection, Entity Framework Core, logging, authentication, authorization, or unit testing is helpful but not required
  • Familiarity with Visual Studio and having it installed on your machine to follow along with the examples

Description

Controller-based APIs come with a lot of boilerplate you don't always need. This course shows you how to build the same production-ready API using Minimal APIs instead, with proper structure.

It uses the GET, POST, PUT, and DELETE methods in Minimal APIs to demonstrate how to design clear and expressive HTTP endpoints from the very beginning. You will start with the fundamentals of Minimal APIs, then gradually move toward designing a well-structured solution that follows clean architecture principles. The course emphasises clear separation of concerns so your application remains easy to maintain, test, and extend as requirements grow.

As you progress, you will integrate SQL Server using Entity Framework Core and DbContext, learning how to model data, manage migrations, and perform efficient data access. You will also implement structured logging with Serilog to capture meaningful diagnostics and configure a global exception handler to ensure consistent and reliable error handling across the entire API.

Security is a core theme throughout the course. You will add API key based authentication to protect endpoints, apply an EndpointFilter that uses feature flags, and write comprehensive unit tests using xUnit v3 to validate business logic and ensure long term stability. Swagger is used extensively for testing, documentation, and exploration of the API, giving you confidence in every endpoint you build and helping you follow modern .NET best practices from start to finish.

Who this course is for:

  • Developers who are new to Minimal APIs
  • .NET developers who want to build clean, minimal API endpoints without unnecessary controllers or boilerplate code
  • Developers who want to learn how to integrate Minimal APIs with SQL Server while adding logging, authentication, authorization, and unit testing
  • Developers looking to future proof their .NET skills and gain confidence building modern, maintainable APIs with Minimal APIs