This project demonstrates a Minimal API implementation in .NET 9 for managing student data with full CRUD operations. It is designed to showcase how to build lightweight, high-performance APIs without using controllers.
- β Minimal API (no controllers)
- β CRUD operations (Create, Read, Update, Delete)
- β Entity Framework Core with SQL Server
- β Clean and simple endpoint design
- β Dependency Injection
- β Swagger for API testing
| Method | Endpoint | Description |
|---|---|---|
| GET | /students |
Get all students |
| GET | /students/{id} |
Get student by ID |
| POST | /students |
Create new student |
| PUT | /students/{id} |
Update student |
| DELETE | /students/{id} |
Delete student |
- .NET 9 Minimal API
- Entity Framework Core
- SQL Server
- Swagger / OpenAPI
This project is built to:
- Understand Minimal APIs in .NET
- Compare Minimal API vs Controller-based API
- Learn clean API design with fewer abstractions
- Serve as a base for scalable backend systems
- JWT Authentication
- DTOs & AutoMapper
- Repository Pattern
- Validation & Middleware
- Logging (Serilog)
π‘ This project is a stepping stone toward building production-grade APIs using modern .NET practices.