Skip to main content
codewithmukesh
Free 79 lessons published so far →

Free ASP.NET Core Web API Course

In this course, I will take you from your very first endpoint all the way to an API that is ready for production, using .NET 10. Along the way, you will learn EF Core, JWT authentication, Clean Architecture, and Docker, with complete source code for every lesson.

Join 9,735 developers. No spam, and you can unsubscribe anytime.

or start reading the lessons without signing up →

  • 4.9 / 847 reviews
  • ·
  • 12,500+ students
  • ·
  • Mukesh Murugan by Mukesh Murugan

About

The .NET Web API Zero to Hero course is a free ASP.NET Core Web API course that I, Mukesh Murugan, am writing on .NET 10. It starts with REST basics and your first endpoint, and then moves on to Entity Framework Core 10, JWT authentication with refresh tokens, Clean Architecture, Domain-Driven Design (DDD), CQRS, caching with Redis, Docker, and CI/CD with GitHub Actions. Later modules cover observability with OpenTelemetry and integration testing with Testcontainers.

The course is planned at 152 lessons across 13 modules. 79 of them are published right now, and I keep adding new ones. Every lesson is a detailed written article, and the complete source code is available on GitHub.

  • 152 lessons planned
  • Free to read
  • .NET 10 / EF Core 10
  • 4.9 from 847
  • 12,500+ students

Why this course

What you learn after the basics

Getting a basic CRUD API working is a good first step, but a real project needs a lot more than that. You need authentication, a clean way to structure your code, caching, tests, and a way to ship your API to a server. Here is what the course covers once the basics are in place. The testing and observability lessons are still being written, and I will publish them as they are ready.

Clean Architecture & DDD

You will learn how to split a project into proper layers, model your domain with entities and value objects, and keep your business logic away from the database code.

JWT Auth & Authorization

I cover JWT authentication, refresh tokens, and role-based, claims-based, and policy-based authorization, so you can see how each piece fits together.

Docker & CI/CD

You will containerize your API with Docker and set up a GitHub Actions pipeline that builds and deploys it for you.

Observability

Health checks, OpenTelemetry, Prometheus, Grafana, and the ELK stack. These help you understand what your API is doing once it is running in production.

Integration Testing

Integration tests with WebApplicationFactory and Testcontainers that run against a real database, so you can change your code without worrying about breaking something.

Caching & Performance

In-memory caching, distributed caching with Redis, output caching, and HybridCache, along with when each one makes sense.

Learning path

From your first endpoint to production

The course is split into four stages across 13 modules. You start with the basics of building an API, and slowly move towards topics like security, architecture, and deployment. There are no deadlines, so you can go through it at your own pace.

1

Stage 1

Beginner

REST basics, middleware, dependency injection, and working with a database using EF Core.

Module 1, Module 2

2

Stage 2

Intermediate

Common API patterns, caching and performance, calling other APIs, and background jobs.

Module 3, Module 4, Module 5, Module 6

3

Stage 3

Advanced

File handling, authentication and authorization, and structuring your code with Clean Architecture and DDD.

Module 7, Module 8, Module 9

4

Stage 4

Production-Ready

Observability, testing, Docker, CI/CD, and getting ready for .NET interviews.

Module 10, Module 11, Module 12, Module 13

Learn + build

What you will learn and build

Skills you'll gain

  • Build REST APIs from scratch with ASP.NET Core and .NET 10
  • Work with databases using Entity Framework Core 10
  • Secure your APIs with JWT authentication, refresh tokens, and authorization policies
  • Structure your projects with Clean Architecture and Domain-Driven Design (DDD)
  • Use CQRS to keep your reads and writes separate
  • Cache data with in-memory caching, Redis, and HybridCache
  • Validate requests with FluentValidation and return proper errors with ProblemDetails
  • Add structured logging and global exception handling
  • Handle pagination, sorting, searching, and bulk operations
  • Containerize your API with Docker and deploy it with GitHub Actions

Projects you'll build

RESTful Product API

A complete CRUD API with the right HTTP status codes, request validation, and proper error handling.

Secure Authentication System

JWT authentication with refresh tokens, along with role-based and policy-based authorization.

E-Commerce Backend

A larger backend built with Entity Framework Core, caching, and Clean Architecture.

Dockerized API

Your API running in a Docker container, with a CI/CD pipeline that builds and deploys it.

Curriculum

152 lessons across 13 modules

Every lesson is a detailed written article with complete source code. 79 lessons are published so far, and the rest are on the way. You can open any published lesson right away.

01

Getting Started with .NET Web API

Master the fundamentals of building web APIs with ASP.NET Core. This chapter covers REST principles, middleware, dependency injection, error handling, logging, and API documentation -essential skills for creating robust, maintainable API foundations.

18 lessons · ~341 min 17/18 available
02

Database Management with Entity Framework Core

Learn to implement efficient data access with Entity Framework Core. From basic CRUD operations to advanced concepts like entity relationships, concurrency control, and optimized query strategies that will help you build scalable, data-driven applications.

25 lessons · ~490 min 17/25 available
03

Advanced API Features & Design Patterns

Enhance your APIs with advanced features and architectural patterns. Learn to implement configuration management, validation, CQRS (Command Query Responsibility Segregation), feature flags, versioning, and real-time communication with SignalR to build flexible, maintainable, and feature-rich APIs.

15 lessons · ~322 min 8/15 available
04

Performance Optimization & Caching

Optimize your API's performance through benchmarking, response compression, and multi-layered caching strategies. These techniques will help you reduce response times, minimize database load, and scale your application effectively.

11 lessons · ~214 min 5/11 available
05

HTTP Clients & Resilient API Communication

Build reliable service-to-service communication with properly configured HTTP clients. Learn best practices for creating resilient, maintainable API integrations that can gracefully handle failures when consuming external services.

8 lessons · ~148 min Coming soon
06

Background Processing

Implement reliable background job processing for long-running tasks, scheduled jobs, and queue processing. Learn to use hosted services, Hangfire, and Quartz.NET to handle async workloads efficiently.

7 lessons · ~132 min 1/7 available
07

File Handling & Storage

Master file operations in .NET APIs including uploads, downloads, validation, and cloud storage integration. Learn to handle files securely and efficiently with AWS S3 and Azure Blob Storage.

8 lessons · ~148 min 2/8 available
08

API Security, Authentication & Authorization

Secure your APIs with industry-standard authentication and authorization techniques. Implement JWT (JSON Web Token) authentication, refresh tokens, role-based access control, OAuth 2.0, CORS (Cross-Origin Resource Sharing), and protection against common security threats to safeguard your application's data and resources.

16 lessons · ~377 min 11/16 available
09

Architecting .NET APIs – Clean Code & Best Practices

Apply proven architectural patterns to design maintainable, scalable APIs. Compare different architectural approaches and implement Domain-Driven Design, Clean Architecture, and Vertical Slice Architecture to manage complexity in your applications.

13 lessons · ~323 min 5/13 available
10

Tracing, Monitoring & Observability

Implement comprehensive monitoring and observability for your APIs. Learn to use health checks, distributed tracing, and metrics collection to gain insights into your application's behavior and quickly identify and resolve issues in production.

8 lessons · ~171 min 1/8 available
11

Testing & Quality Assurance

Ensure API reliability with effective testing strategies. Implement unit tests, integration tests, and automated test pipelines to catch issues early and maintain high quality standards throughout your development process.

5 lessons · ~101 min Coming soon
+2

More modules await.

View the full curriculum with 152+ lessons across 13 modules.

View all on lessons page

Student reviews

What students are saying

"This is the best free .NET course I've found. The way Mukesh explains Clean Architecture and EF Core patterns saved me weeks of learning."

Rahul Sharma

Backend Developer at Infosys

"I transitioned from Node.js to .NET using this course. The step-by-step approach made it so much easier than I expected."

Sarah Mitchell

Full Stack Developer

"Landed my first .NET developer role after completing this course. The CQRS and MediatR sections were exactly what my interviewer asked about."

Carlos Rodriguez

Junior Developer at Accenture

"Better than most paid courses on Udemy. The code samples are production-quality and the explanations are crystal clear."

Priya Patel

Software Engineer at TCS

"I've been doing .NET for 5 years and still learned new patterns from this course. The EF Core optimization tips alone were worth it."

David Chen

Senior Developer

"The Docker and deployment sections bridged the gap between tutorials and real-world production apps. Exactly what I needed."

Aisha Okafor

Backend Engineer at Deloitte

08 · Your instructor

Written by Mukesh Murugan.

The instructor
Mukesh Murugan

Mukesh Murugan

Solutions Architect · Microsoft MVP

Trivandrum, IN
8°N

About the instructor

  • Microsoft MVP · since 2020
  • Solutions Architect
  • 10+ years .NET
  • 150+ articles

I am a Microsoft MVP and Solutions Architect, and I have been building .NET systems for over 10 years. On this blog, I write about .NET, ASP.NET Core, and the cloud, and I send out a weekly .NET newsletter.

This course is free because my newsletter keeps the work going. Most of what I teach here comes from the production systems I build and maintain at work.

  • 12,500+

    Students

  • 4.9/5

    Rating

  • 9,735

    Newsletter

  • 40K+

    LinkedIn

FAQ

Is this .NET Web API course really free?

Yes, it is completely free. Every lesson, along with the source code, is free to read on this site. There are no paid tiers and nothing is locked behind a paywall. You can sign up to get the lessons by email, but you do not have to. You can start reading right away.

Do I need prior .NET experience to take this course?

Some basic C# knowledge will help, but you do not need any prior experience with ASP.NET Core. The course starts from the fundamentals, like REST, middleware, and dependency injection, and then builds up to the more advanced topics one step at a time.

What version of .NET does this course cover?

The course is written for .NET 10 and EF Core 10. The code uses modern C# and the current way of doing things in ASP.NET Core, like Minimal APIs and Scalar for API documentation.

How long will it take to complete the course?

It depends on how much time you can give it. There are no deadlines, so you can go through the lessons at your own pace. My suggestion is to go in order, and to actually write the code for each lesson instead of just reading it. That is where most of the learning happens.

Will I get a certificate after completing the course?

No, I don't offer certificates at the moment. What I would suggest instead is to build the projects from the course and put them on your GitHub. When you are applying for jobs, working code that you can talk through is a lot more useful than a certificate.

Is there source code available for the lessons?

Yes. The complete source code for the lessons is available on GitHub. You can clone the repository and follow along with each lesson.

What is ASP.NET Core Web API and why should I learn it?

ASP.NET Core Web API is Microsoft's framework for building HTTP APIs using C# and .NET. It is what sits behind a lot of web apps, mobile apps, and internal business systems. If you want to work as a backend or full-stack .NET developer, building Web APIs is something you will do almost every day, so it is one of the best skills to learn first.

Is .NET 10 good for building REST APIs?

Yes. .NET performs very well for web workloads, and .NET 10 gives you Minimal APIs, built-in OpenAPI support, native AOT for faster startup, and good support for Docker and the cloud. It is also a Long Term Support (LTS) release, so it is a safe version to build on. The course uses these .NET 10 features throughout.

How does this free course compare to paid courses?

I have not tried to copy any paid course. I wrote this one the way I would want to learn the topic myself. It goes further than a basic CRUD tutorial, and covers things like Clean Architecture, security, caching, Docker, and deployment. Every lesson is a written article with full source code, and I update the lessons when new .NET versions come out.

Can I use this course to prepare for .NET developer interviews?

Yes. The topics in this course, like REST API design, EF Core, authentication, caching, CQRS, and Clean Architecture, come up a lot in .NET backend interviews. There is also a separate module just for interview prep, with questions on Web API, EF Core, C#, system design, SQL, and more.

ASP.NET Core vs Node.js - which is better for building REST APIs?

Both are good choices, and the right one depends on your team and your project. ASP.NET Core gives you strong typing with C#, built-in dependency injection, and very good performance, which helps a lot on larger projects that need to be maintained for years. Node.js has a huge package ecosystem and works well for smaller, lightweight services. If you already know C#, or you want to work at companies that use .NET, ASP.NET Core is a great choice.

Is .NET a good choice for backend development in 2026?

Yes. .NET is open source, it runs on Windows, Linux, and macOS, and it is used by many companies for their backend systems. With .NET 10, you get Minimal APIs for simple endpoints, built-in OpenAPI support, native AOT, and good tooling for Docker and the cloud. A lot of companies are also moving their older .NET Framework applications to modern .NET, so there is steady work for developers who know it well.

How long does it take to learn .NET Web API development from scratch?

If you already know some C#, you can build your first working API within a few days. Getting comfortable with the full picture, which includes the database, authentication, architecture, and deployment, takes longer. The course follows that same order: REST basics and your first endpoint first, then EF Core, then security and architecture, and finally Docker and deployment.

What career opportunities does learning ASP.NET Core Web API open up?

Web API skills are the base for most .NET backend and full-stack developer roles. As you get more experienced, they also lead into cloud and architecture work. Most job descriptions for these roles ask for the same set of skills this course covers: REST APIs, Entity Framework Core, authentication, Clean Architecture, Docker, and CI/CD.

What topics does this free .NET Web API course cover?

The course has 13 modules: (1) REST fundamentals, middleware, dependency injection, error handling, and logging with Serilog; (2) Entity Framework Core 10, including relationships, migrations, soft deletes, bulk operations, and compiled queries; (3) API patterns like the Options pattern, FluentValidation, CQRS, the Result pattern, API versioning, and SignalR; (4) Performance, including benchmarking, response compression, in-memory caching, Redis, output caching, and HybridCache; (5) HTTP clients with Refit and Polly; (6) Background jobs with hosted services, Hangfire, and Quartz.NET; (7) File handling, including uploads, downloads, AWS S3, and Azure Blob Storage; (8) Security, including JWT authentication, refresh tokens, role-based and policy-based authorization, OAuth 2.0, CORS, and rate limiting; (9) Architecture, including Clean Architecture, DDD, Vertical Slice Architecture, and Modular Monoliths; (10) Observability with health checks, OpenTelemetry, Prometheus, Grafana, and the ELK stack; (11) Unit and integration testing with Testcontainers; (12) Deployment with Docker, GitHub Actions, and YARP; and (13) Interview preparation.

Who created this .NET Web API course?

I did. I am Mukesh Murugan (@iammukeshm), a Microsoft MVP and Solutions Architect, and I have been building .NET systems for over 10 years. I write about .NET on codewithmukesh, and I send a weekly .NET newsletter to 9,735 developers. I also created fullstackhero, an open-source .NET starter kit built on Clean Architecture.

What is the best way to learn ASP.NET Core Web API in 2026?

In my experience, the best way is to learn in a clear order and to build something as you go. Start with REST and HTTP basics, then learn Entity Framework Core for the database, then add authentication and authorization. After that, look at how to structure a bigger project with something like Clean Architecture, and finally learn how to ship it with Docker and CI/CD. This course follows exactly that order, and the source code for every lesson is on GitHub so you can build along.

Get the course

Start building Web APIs with .NET 10

You can sign up to get the lessons in your inbox, or start reading them on the site right now. Either way, the whole course is free.

Join 9,735 developers. No spam, and you can unsubscribe anytime.

12,500+ students have signed up so far

.NET Web API
Free · 60+ hours
Get the Course
Newsletter

stay ahead in .NET

One email every Tuesday at 7 PM IST. One topic, deep. The week's articles. No filler.

Tutorials Architecture DevOps AI
Join 9,735 developers · Delivered every Tuesday
Privacy notice 30s read

Cookies, but only the useful ones.

I use cookies to understand which articles get read and which CTAs actually work. No third-party advertising trackers, ever. Read the privacy policy →