Microsoft.AspNetCore.OpenApi
First-party OpenAPI generation support aligned with modern ASP.NET Core hosting patterns.
Decision Guide
Modern ASP.NET Core already provides robust primitives for APIs. Additional packages should solve concrete needs such as endpoint modularity, convention-based validation, or faster API composition rather than replacing fundamentals.
The decision to make
Which package stack should shape API endpoints in an ASP.NET Core service?
Curated starting points to compare. Always evaluate suitability against your specific project requirements.
First-party OpenAPI generation support aligned with modern ASP.NET Core hosting patterns.
Adds lightweight modular organization for ASP.NET Core endpoints with minimal ceremony.
Endpoint-centric framework on ASP.NET Core with conventions for request handling and validation.
Define endpoint contracts first: route, request model, validation, problem-details response, authorization policy, and OpenAPI documentation. Keep endpoint handlers thin and delegate domain work to services.
Use built-in middleware deliberately for exception handling, HTTPS, authentication, authorization, rate limiting, and health checks. Order middleware according to the framework guidance and test the entire pipeline.
Version public contracts intentionally and make compatibility decisions visible in code review. Add observability at ingress, dependency boundaries, and failure paths.
Risk
Checklist
Re-evaluate the package stack when API surface area scales significantly, governance needs grow, or platform teams standardize endpoint architecture.