Skip to content

Add WebApiBestPractices sample (ASP.NET Core Web API best practices) - #2326

Merged
vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/3106-aspnetcore-webapi-best-practices
Oct 26, 2026
Merged

vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/3106-aspnetcore-webapi-best-practices

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Adds a new .NET 10 sample in aspnetcore-webapi/WebApiBestPractices for the ASP.NET Core Web API best practices article: a layered solution (API, Application, Domain, Infrastructure) with service registration in extension methods, an IExceptionHandler returning problem details, an action filter, API versioning with Asp.Versioning.Mvc, built-in OpenAPI, output caching varied by the Accept header with tag eviction, HybridCache, per-client rate limiting, JWT authentication, password hashing, data protection and content negotiation, plus 19 xUnit v3 tests that exercise each practice.

…tices article

New .NET 10 sample in aspnetcore-webapi/WebApiBestPractices: API, Application, Domain and Infrastructure projects plus 19 xUnit v3 tests covering the exception handler, action filter, JWT, rate limiting, output caching, content negotiation, versioning and OpenAPI.
@vladimir-pecanac-main
vladimir-pecanac-main merged commit 55d01e3 into CodeMazeBlog:main Oct 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant