Przejdź do treści
FullstackDev
Hot

Web API .NET 8 + Clean Architecture (en)

Build .NET 8 APIs in Clean Architecture, user Identity system and Azure deployment using CI/CD + practical exercises

Last updated: 2/2025 English

112

lectures

14

hours of video

1183

ratings

7229

students

What you'll learn

  • Create a backend for a web application that adds, modifies, deletes and returns data
  • Build an MS SQL database based on C# classes
  • Add authentication and authorization for API users
  • Create a Clean Architecture solution following CQRS
  • Implement custom middleware and handle files in the API
  • Log application information and errors to text files using Serilog
  • Write automated unit and integration tests
  • Write CI/CD pipelines and deploy the application to the Azure cloud

About this course

Ready to build robust, high-performance RESTful APIs with confidence? This comprehensive course gives you the knowledge and skills to create modern web APIs using the powerful combination of ASP.NET Core 8, Clean Architecture and Azure services. You will start with the fundamentals: HTTP communication, REST principles, routing, model binding and setting up your local development environment.

Next, you will establish the infrastructure - connecting an MS SQL database with Entity Framework, adding a seeding mechanism, and structuring the solution according to Clean Architecture with a clear separation of concerns using CQRS and MediatR. You will build full RESTful resource management with DTO mapping and Fluent Validation.

Beyond core features, you will enhance the robustness of your API: logging with Serilog, automated documentation, global exception handling, sub-entity management, user authentication and authorization with ASP.NET Identity (including roles and custom claims), plus pagination and sorting for large datasets.

Testing and deployment complete the journey: you will write automated unit and integration tests, deploy the application to Azure App Service with Azure SQL, and automate the whole process with CI/CD pipelines. By the end you will be able to architect and ship secure, maintainable and scalable RESTful APIs.

Course content

Course introduction

4 · 8 min

REST Web API

11 · 1 hr 6 min

Solution architecture

4 · 16 min

Setting up infrastructure

6 · 43 min

API Controller

9 · 1 hr 14 min

CQRS + MediatR

5 · 42 min

Web API utilities

7 · 55 min

Subentities

6 · 39 min

Authentication

8 · 57 min

Authorization

11 · 1 hr 43 min

Requirements

  • Basic C# knowledge (LINQ, async/await and generic collections)

Who this course is for

  • .NET developers who want to learn how to create web applications