How evilwave12/dsw2026-tpi works
This ASP.NET Core API exposes administrator registration/login and doctor-related operations. The visible authentication flow routes requests through the authentication controller and service, which validate credentials or register users and issue JWTs for login. Doctor operations are represented by a controller, service, persistence abstraction and EF-backed data layer. The tree and README do not document broader product capabilities; several configuration and doctor-controller details are unsampled, so those links are limited to relationships supported by the source index.
Main entry points: DoctorService.cs Doctor service · AuthenticationService.cs Authentication service · AuthenticationController.cs Authentication API · ApplicationUser.cs Identity user
Components 20
HTTP API
- Authentication API
Dsw2026Tpi.Api/Controllers/AuthenticationController.cs - Doctor API
Dsw2026Tpi.Api/Controllers/DoctorController.cs - Error middleware
Dsw2026Tpi.Api/Middlewares/ExceptionHandlingMiddleware.cs
Application Services
- Authentication service
Dsw2026Tpi.Application/Services/AuthenticationService.cs - Doctor service
Dsw2026Tpi.Application/Services/DoctorService.cs - Password check
Dsw2026Tpi.Api/Services/SignInService.cs - JWT issuer
Dsw2026Tpi.Application/Services/JwtService.cs - Auth DTOs
Dsw2026Tpi.Application/Dtos/RegisterModel.cs - Doctor DTO
Dsw2026Tpi.Application/Dtos/DoctorModel.cs
Domain and Persistence
- Doctor entity
Dsw2026Tpi.Domain/Entities/Doctor.cs - Speciality entity
Dsw2026Tpi.Domain/Entities/Speciality.cs - Pagination
Dsw2026Tpi.Domain/Entities/Pagination.cs - Persistence contract
Dsw2026Tpi.Domain/Interfaces/IPersistence.cs - EF persistence
Dsw2026Tpi.Data/PersistenceEf.cs - Application database
Dsw2026Tpi.Data/Dsw2026TpiDbContext.cs
Identity and Errors
- Identity user
Dsw2026Tpi.Data/Identity/ApplicationUser.cs - Identity database
Dsw2026Tpi.Data/Identity/AuthenticationDbContext.cs - Application errors
Dsw2026Tpi.CrossCutting/Exceptions/AppException.cs - Authentication error
Dsw2026Tpi.CrossCutting/Exceptions/AuthenticationException.cs
Other components
- API caller
Connections 19
- API caller → Authentication API: sends requests
Dsw2026Tpi.Api/Controllers/AuthenticationController.cs - Authentication API → Authentication service: invokes
Dsw2026Tpi.Api/Controllers/AuthenticationController.cs - Authentication service → Password check: checks password
Dsw2026Tpi.Application/Services/AuthenticationService.cs - Authentication service → JWT issuer: generates token
Dsw2026Tpi.Application/Services/AuthenticationService.cs - Authentication service → Identity user: creates user
Dsw2026Tpi.Application/Services/AuthenticationService.cs - Password check → Identity user: checks user
Dsw2026Tpi.Api/Services/SignInService.cs - Identity database → Identity user: maps identity
Dsw2026Tpi.Data/Identity/AuthenticationDbContext.cs - Authentication service → Authentication error: throws
Dsw2026Tpi.Application/Services/AuthenticationService.cs - Error middleware → Application errors: formats errors
Dsw2026Tpi.Api/Middlewares/ExceptionHandlingMiddleware.cs - API caller → Doctor API: sends requests
- Doctor API → Doctor service: invokes
Dsw2026Tpi.Api/Controllers/DoctorController.cs - Doctor service → Persistence contract: uses persistence
Dsw2026Tpi.Application/Services/DoctorService.cs - Doctor service → Doctor DTO: maps data
Dsw2026Tpi.Application/Services/DoctorService.cs - Doctor service → Doctor entity: uses entity
Dsw2026Tpi.Application/Services/DoctorService.cs - Doctor service → Speciality entity: uses entity
Dsw2026Tpi.Application/Services/DoctorService.cs - Doctor service → Pagination: uses paging
Dsw2026Tpi.Application/Services/DoctorService.cs - EF persistence → Persistence contract: implements
Dsw2026Tpi.Data/PersistenceEf.cs - EF persistence → Application database: queries
Dsw2026Tpi.Data/PersistenceEf.cs - Authentication API → Auth DTOs: accepts payload
Dsw2026Tpi.Api/Controllers/AuthenticationController.cs