Web API Stack
AIC Standard
ASP.NET Core on .NET 10 is the AIC default for Web API delivery.
Use Minimal APIs for simple, focused HTTP APIs and microservice endpoints. Use controllers where the API benefits from richer conventions, filters, versioning patterns, complex model binding, or larger team familiarity.
Required Components
A production Web API SHOULD include:
clear endpoint structure
request and response DTOs
validation layer
ProblemDetails error responses
authentication and authorization
OpenAPI documentation
structured logging
correlation identifier
health checks
metrics and traces
integration tests
security tests for access control
versioning strategy
configuration validation
rate limiting or throttling where needed
resilience policies for downstream calls
Recommended Project Structure
Minimal API Example
Controller Example
API Quality Gate
Before an API is released:
OpenAPI document is generated
authentication behaviour is tested
authorization policies are tested
validation failures return consistent errors
401, 403, 404, 409 and 500 behaviours are understood
logs contain correlation identifiers
health checks exist
dependency timeouts are configured
integration tests pass
backward compatibility is reviewed
Was this helpful?

