Lessons in .NET Web API
.NET Web API Zero to Hero Course. Every lesson is a written article with complete source code.
- 12 modules
- 127 lessons
- 60+ hours
- 50 available
Course content
12 modules · 127 lessons
60+ hours total length
RESTful API Best Practices for .NET Developers
Next up
Learn the core principles of Web APIs and RESTful design that form the foundation of modern application development.
Understanding HTTP Status Codes – Returning Proper API Responses
Select appropriate HTTP status codes to provide clear, standards-compliant feedback to API consumers.
Environment-based Configuration – appsettings.json, Environment Variables & Launch Profiles
Configure your .NET application for different environments using configuration files, environment variables, and launch profiles.
Middlewares in ASP.NET Core .NET 10 – The Complete Guide to Request Pipeline, Custom Middleware, and IMiddleware
Master ASP.NET Core middleware in .NET 10 - execution order, custom middleware, IMiddleware, short-circuiting, and the middleware vs filters decision matrix.
Dependency Injection (DI) in ASP.NET Core – Deep Dive into DI and Its Benefits
Implement effective dependency injection patterns in ASP.NET Core to improve code maintainability and testability.
Service Lifetimes – Differences Between Transient, Scoped, and Singleton Lifetimes
Select appropriate service lifetimes for your dependencies to prevent memory leaks and ensure proper resource management.
Keyed Services in .NET – Advanced DI Techniques Using Keyed Services
Utilize keyed services to solve complex dependency injection scenarios requiring multiple implementations of the same interface.
Scrutor – Auto-Registering Dependencies for Cleaner DI Management
Streamline dependency registration with Scrutor's assembly scanning capabilities to reduce boilerplate code.
Filters in ASP.NET Core .NET 10 - Action, Resource, Exception, Result, and Endpoint Filters
Master all 6 filter types in ASP.NET Core .NET 10 with decision matrices for filters vs middleware.
ProblemDetails in ASP.NET Core – Standardizing Error Responses in APIs
Implement RFC 7807 ProblemDetails standard to provide consistent, machine-readable error responses in your APIs.
Global Exception Handling – Centralized Error Handling for Better Maintainability
Develop a centralized exception handling strategy to manage errors consistently across your entire API.
Structured Logging with Serilog – Implementing Structured Logging in .NET APIs
Configure Serilog for structured logging to enhance troubleshooting capabilities with queryable, context-rich log data.
Minimal API Endpoints – Understanding and Using Minimal APIs in ASP.NET Core
Build concise, performant API endpoints using the Minimal API paradigm introduced in recent ASP.NET Core versions.
API Documentation – Generating OpenAPI Docs and Exploring Swagger Alternatives
Generate comprehensive API documentation using OpenAPI specifications and evaluate alternatives to Swagger UI.
File-Based Apps in .NET 10 – Run C# Without a Project File
Learn how to run C# code directly from a single file using dotnet run app.cs. Perfect for scripting, prototyping, and quick experiments.
Migrating from .sln to .slnx in .NET 10 – The New XML-Based Solution Format
Migrate from .sln to .slnx in .NET 10. Covers the new XML-based solution format, migration methods, CI/CD compatibility, and team adoption strategy.
New lessons added regularly