Project rules
ASP.NET Core Web API Rules
Project rules for ASP.NET Core APIs, minimal APIs or controllers: DTOs, async all the way, ProblemDetails errors and EF Core discipline.
CLAUDE.md
1Structure
2- Pick one style per project: minimal APIs grouped with `MapGroup` and one static class per feature, or controllers with `[ApiController]`. Do not mix them.
3- Enable nullable reference types and treat warnings as errors. Use `record` types for DTOs.
4- Never return or accept EF entities in endpoints. Map to request and response DTOs explicitly.
5Async and DI
dotnetcsharp
#
ASP.NET Core Web API Rules
Project rulesdotnet
Free