How tijartaufikrahman/pos-route-optimization-api works
This is an ASP.NET Core backend for courier shipment management and route optimization. Dispatcher and courier clients call API controllers; repository services handle authentication, shipment intake, route calculation, assignment, and delivery proof, backed by SQL Server through EF Core. The README also documents Excel bulk import, OTP email recovery, JWT security, and ACO optimization. Sampled files establish several service and persistence links; unsampled components are included where the README or source index supports their role, without inferring undocumented call sequences.
Main entry points: Interfaces Service contracts · AppDbContext.cs EF Core context · OptimizationController.cs Optimization API · PenugasanRepository.cs Assignment lifecycle
Components 23
API surface
- Authentication API
Controllers/AuthController.cs - Shipment API
Controllers/KirimanController.cs - Optimization API
Controllers/OptimizationController.cs - Assignment API
Controllers/PenugasanController.cs - Delivery proof API
Controllers/ProofOfDeliveryController.cs - Office and user APIs
Controllers/KantorController.cs - Role API
Controllers/RolesController.cs
Domain services
- Service contracts
Interfaces - Authentication service
Repositories/AuthRepository.cs - Shipment service
Repositories/KirimanRepository.cs - ACO and routing
Repositories/OptimizationRepository.cs - Assignment lifecycle
Repositories/PenugasanRepository.cs - Proof of delivery
Repositories/ProofOfDeliveryRepository.cs - Office and user services
Repositories - Role management
Repositories/RolesRepository.cs
Persistence model
- EF Core context
Data/AppDbContext.cs - Delivery entities
Models/Entity - API data transfer
Models/DTO
External platform
- SQL Server
- Geographic routing service
- SMTP email
Other components
- Dispatcher dashboard
- Courier app
Connections 30
- Dispatcher dashboard → Authentication API: requests
- Dispatcher dashboard → Shipment API: manages shipments
- Dispatcher dashboard → Optimization API: triggers routes
- Dispatcher dashboard → Assignment API: assigns couriers
- Courier app → Authentication API: authenticates
- Courier app → Assignment API: retrieves route
- Courier app → Delivery proof API: submits proof
- Authentication API → Service contracts: uses auth contract
Controllers/AuthController.cs - Shipment API → Service contracts: uses shipment contract
Controllers/KirimanController.cs - Optimization API → Service contracts: uses optimization contract
Controllers/OptimizationController.cs - Assignment API → Service contracts: uses assignment contract
Controllers/PenugasanController.cs - Delivery proof API → Service contracts: uses proof contract
Controllers/ProofOfDeliveryController.cs - Office and user APIs → Service contracts: uses office contract
Controllers/KantorController.cs - Role API → Service contracts: uses role contract
Controllers/RolesController.cs - Service contracts → Authentication service: resolves to
Program.cs - Service contracts → Shipment service: resolves to
Program.cs - Service contracts → ACO and routing: resolves to
Program.cs - Service contracts → Assignment lifecycle: resolves to
Program.cs - Service contracts → Proof of delivery: resolves to
Program.cs - Service contracts → Office and user services: resolves to
Program.cs - Service contracts → Role management: resolves to
Program.cs - Authentication service → SMTP email: sends OTP email
Repositories/AuthRepository.cs - Shipment service → EF Core context: reads and writes
Repositories/KirimanRepository.cs - ACO and routing → Geographic routing service: requests routes
Repositories/OptimizationRepository.cs - Assignment lifecycle → Proof of delivery: uploads proof
Repositories/PenugasanRepository.cs - Assignment lifecycle → EF Core context: reads and writes assignments
Repositories/PenugasanRepository.cs - Proof of delivery → EF Core context: persists proof
Repositories/ProofOfDeliveryRepository.cs - EF Core context → Delivery entities: maps entities
Data/AppDbContext.cs - EF Core context → SQL Server: uses configured provider
- Optimization API → API data transfer: accepts route requests
Controllers/OptimizationController.cs