Quick
Dev
Guide
Home
›
.NET Core Web API
Project Creation & Structure — .NET Core Web API
Create the Project Install NuGet Packages Project Structure
Key Takeaways
Use dotnet new webapi -controllers for controller-based API.
Separate layers: Controllers, Services, Repositories, Entities, DTOs.
Two repository implementations: EF Core (Category) and ADO.NET (SubCategory).
Tests folder mirrors the main project structure.
SQL migrations in Migrations/ folder for manual DDL.
.NET Core Web API Topics
What is ASP.NET Core Web API
Prerequisites & Installation
Project Creation & Structure
Entities & DTOs
Database Configuration
Data Access — Entity Framework Core
Data Access — ADO.NET / Npgsql
EF Core vs ADO.NET Comparison
Services & Controllers
Caching Layer: Redis & In-Memory
Security — Authentication & Authorization
JWT Creation & Management
Program.cs — DI & Middleware Pipeline
Logging & Monitoring with Serilog
Environment Variables & Secrets
Unit Testing
Integration Testing
Code Coverage Report
Load Testing Your API
API Verification — Swagger & Postman
API Specification for Frontend Team
API Gateway with YARP
Deployment — IIS
Deployment — Docker
Cooperative Cancellation with CancellationToken
Design Patterns Used
Best Practices — Do's & Don'ts