How gookian/logisticscontrolsystemserver works
This is an ASP.NET logistics-management API backed by PostgreSQL. Clients use entity endpoints for orders, products and inventory, packages, warehouses, vehicles, flights, delivery points, and deliveries; most CRUD operations share a generic controller/repository path. Authentication validates credentials against users and issues in-memory expiring tokens. The graph includes the documented-by-source domain entities and major controller areas; several controller implementations and application startup wiring were not excerpted, so their internal connections are omitted.
Main entry points: Delivery.cs Delivery · GenericApiController.cs Generic API · Product.cs Product · Authenticator.cs Token authenticator
Components 26
API and authentication
- Generic API
LogisticsСontrolSystemServer/Controllers/GenericApiController.cs - Authentication endpoint
LogisticsСontrolSystemServer/Controllers/AuthenticatorController.cs - Token authenticator
LogisticsСontrolSystemServer/Authenticator.cs - Token middleware
LogisticsСontrolSystemServer/Middlewares/TokenAuthenticationMiddleware.cs - URL logging
LogisticsСontrolSystemServer/Middlewares/LogURLMiddleware.cs - Entity controllers
LogisticsСontrolSystemServer/Controllers
Persistence
- EF repository
LogisticsСontrolSystemServer/DataAccessLayer/Repositories/EFGenericRepository.cs - Repository contract
LogisticsСontrolSystemServer/DataAccessLayer/Repositories/IGenericRepository.cs - User repository
LogisticsСontrolSystemServer/DataAccessLayer/Repositories/UserRepository.cs - PostgreSQL context
LogisticsСontrolSystemServer/DataAccessLayer/PostgreSQLContext.cs - PostgreSQL database
Orders and inventory
- Order
LogisticsСontrolSystemServer/Models/Order.cs - Order detail
LogisticsСontrolSystemServer/Models/OrderDetail.cs - Product
LogisticsСontrolSystemServer/Models/Product.cs - Product data
LogisticsСontrolSystemServer/Models/ProductData.cs - Product state
LogisticsСontrolSystemServer/Models/ProductState.cs - Warehouse stock
LogisticsСontrolSystemServer/Models/ProductInWarehouse.cs
Shipping and delivery
- Warehouse
LogisticsСontrolSystemServer/Models/Warehouse.cs - Package
LogisticsСontrolSystemServer/Models/Package.cs - Package state
LogisticsСontrolSystemServer/Models/PackageState.cs - Package contents
LogisticsСontrolSystemServer/Models/PackageСontent.cs - Vehicle
LogisticsСontrolSystemServer/Models/Vehicle.cs - Flight
LogisticsСontrolSystemServer/Models/Flight.cs - Delivery point
LogisticsСontrolSystemServer/Models/DeliveryPoint.cs - Delivery
LogisticsСontrolSystemServer/Models/Delivery.cs
Other components
- API client
Connections 24
- API client → Entity controllers: sends requests
- API client → Authentication endpoint: requests token
- Entity controllers → Generic API: inherits CRUD
LogisticsСontrolSystemServer/Controllers/DeliveryController.cs - Generic API → EF repository: constructs
LogisticsСontrolSystemServer/Controllers/GenericApiController.cs - Generic API → PostgreSQL context: constructs
LogisticsСontrolSystemServer/Controllers/GenericApiController.cs - EF repository → Repository contract: implements
LogisticsСontrolSystemServer/DataAccessLayer/Repositories/EFGenericRepository.cs - Generic API → Repository contract: uses
LogisticsСontrolSystemServer/Controllers/GenericApiController.cs - PostgreSQL context → PostgreSQL database: configures connection
LogisticsСontrolSystemServer/DataAccessLayer/PostgreSQLContext.cs - Authentication endpoint → Token authenticator: delegates authentication
LogisticsСontrolSystemServer/Controllers/AuthenticatorController.cs - Token authenticator → User repository: checks credentials
LogisticsСontrolSystemServer/Authenticator.cs - User repository → PostgreSQL context: queries users
LogisticsСontrolSystemServer/DataAccessLayer/Repositories/UserRepository.cs - Token middleware → Token authenticator: validates token
LogisticsСontrolSystemServer/Middlewares/TokenAuthenticationMiddleware.cs - Order detail → Order: references
LogisticsСontrolSystemServer/Models/OrderDetail.cs - Order detail → Product data: references
LogisticsСontrolSystemServer/Models/OrderDetail.cs - Product → Product data: references
LogisticsСontrolSystemServer/Models/Product.cs - Product → Product state: references
LogisticsСontrolSystemServer/Models/Product.cs - Warehouse stock → Warehouse: references
LogisticsСontrolSystemServer/Models/ProductInWarehouse.cs - Warehouse stock → Product: references
LogisticsСontrolSystemServer/Models/ProductInWarehouse.cs - Package → Package state: references
LogisticsСontrolSystemServer/Models/Package.cs - Flight → Vehicle: references
LogisticsСontrolSystemServer/Models/Flight.cs - Delivery → Warehouse: references
LogisticsСontrolSystemServer/Models/Delivery.cs - Delivery → Delivery point: references
LogisticsСontrolSystemServer/Models/Delivery.cs - Delivery → Flight: references
LogisticsСontrolSystemServer/Models/Delivery.cs - Delivery → Package: references
LogisticsСontrolSystemServer/Models/Delivery.cs