How somanadhgunti/dotnet_todo works
This is a clean-architecture Todo REST API. A client sends CRUD, user-specific, or completed/pending requests to the controller; the controller delegates to the service, which applies update/filter logic, maps DTOs and entities, and uses the repository to query or persist through EF Core. Program.cs wires the runtime and database. The README also documents Swagger/OpenAPI and user tracking; source excerpts do not show a separate implementation for those capabilities beyond controller identity handling. Relationships are limited to excerpted calls and documented capabilities.
Main entry points: Program.cs Application Host · TodosController.cs Todo Controller · TodoService.cs Todo Service · TodoDbContext.cs EF Context
Components 14
HTTP API
- Application Host
Program.cs - Todo Controller
Controllers/TodosController.cs - Swagger UI
- Response Model
Models/ApiResponse.cs
Todo Domain
- API DTOs
TodoManagementAPI.Core/DTOs/TodoDtos.cs - Todo Service
TodoManagementAPI.Core/Services/TodoService.cs - Service Contract
TodoManagementAPI.Core/Interfaces/ITodoService.cs - DTO Mapping
TodoManagementAPI.Core/Mapping/MappingProfile.cs - Todo Entity
TodoManagementAPI.Core/Entities/Todo.cs - Repository Contract
TodoManagementAPI.Core/Interfaces/ITodoRepository.cs
Persistence
- Todo Repository
TodoManagementAPI.Data/Repositories/TodoRepository.cs - EF Context
TodoManagementAPI.Data/Context/TodoDbContext.cs - SQL Server
Other components
- API Client
Connections 17
- API Client → Todo Controller: sends requests
README.md - Todo Controller → Todo Service: delegates operations
Controllers/TodosController.cs - Todo Controller → API DTOs: accepts and returns
Controllers/TodosController.cs - Todo Service → Repository Contract: calls
TodoManagementAPI.Core/Services/TodoService.cs - Todo Repository → EF Context: queries and saves
TodoManagementAPI.Data/Repositories/TodoRepository.cs - EF Context → Todo Entity: stores
TodoManagementAPI.Data/Context/TodoDbContext.cs - EF Context → SQL Server: persists via EF
- Todo Service → DTO Mapping: maps DTOs
TodoManagementAPI.Core/Services/TodoService.cs - DTO Mapping → Todo Entity: maps entity
TodoManagementAPI.Core/Mapping/MappingProfile.cs - Todo Repository → Repository Contract: implements
TodoManagementAPI.Data/Repositories/TodoRepository.cs - Application Host → Todo Controller: routes controllers
Program.cs - Application Host → Todo Service: registers service
Program.cs - Application Host → Todo Repository: registers repository
Program.cs - Application Host → EF Context: configures context
Program.cs - Application Host → DTO Mapping: registers mapper
Program.cs - Application Host → Swagger UI: configures docs
Program.cs - API Client → Swagger UI: views API docs
README.md