Learn how to validate incoming requests in .NET 10 Minimal APIs using data annotations, custom validation, and built-in ProblemDetails responses using this complete guide paired with practical examples.
Discover how to organize Minimal API endpoints using simple extension methods. This straightforward approach keeps your Program.cs clean without the complexity of reflection, making it perfect for small to medium-sized APIs where explicit registration is preferred.
Learn how to automatically register Minimal API endpoints in .NET using reflection. This approach keeps our Program.cs clean and scalable as our API grows, eliminating repetitive route definitions and enabling convention-based endpoint discovery through assembly scanning and service descriptor registration.
Learn how to implement optimistic concurrency in EF Core using DateTime timestamps and the ConcurrencyCheck attribute to prevent lost updates in multi-user applications without relying on the SQL Server-specific RowVersion.
Explore how to use Endpoint Filters in ASP.NET Core Minimal APIs to handle cross-cutting concerns while keeping your endpoint logic clean, maintainable, and DRY.
By utilizing named query filters, we can define multiple independent filters per entity type, solving the previous single-filter limitation and enabling more flexible data access patterns for complex business scenarios.
By defining response types in our Minimal APIs, we can improve both API documentation and usability. Properly documenting responses ensures clarity for our consumers.
Rate limiting is a technique used to control how many requests a client can make to an API within a certain timeframe. In this article, we will explore how to implement rate limiting in .NET Minimal APIs using the built-in middleware, focusing on the Fixed Window strategy and applying limits per endpoint.
API key authentication is a common approach to securing APIs by requiring clients to provide a unique key with each request. In this article, we will explore how to implement API key authentication in .NET Minimal APIs while supporting multiple API keys.
Minimal APIs, the streamlined, lightweight approach to creating APIs in .NET, offer a perfect blend of simplicity, flexibility, and power. Whether you’re new to API development or a seasoned developer looking to refine your skills, this course has everything you need to take your expertise to the next level.
In this post, we take a look at a brand new feature released with C# 12 and .NET 8, called Primary Constructors - a thing we already have for Records but that is now extended to Classes and Structs.