How nitesh-singh-1/kt_backend works
KTransport is a multi-tenant transport and logistics API. Its principal workflow is users authenticating to the API, then managing shipments and operational transport records such as trips, manifests, fleet, and parties; billing, tracking, reporting, claims, and administration are additional product areas evident in the controller tree and feature constants. The sampled code shows service-backed API handlers, tenant-aware persistence, and shipment numbering and data access. Many domain controllers and services are listed but unsampled, so their internal relationships are not inferred.
Main entry points: KTransportDbContext.cs Tenant-scoped data · ShipmentService.cs Shipment management · ITenantContext.cs Tenant context · FeatureAuthorizationService.cs Feature authorization
Components 30
API and access
- API startup
KTransport.API/Program.cs - Authentication API
KTransport.API/Controllers/AuthController.cs - Authentication
KTransport.API/Services/AuthService.cs - Feature authorization
KTransport.API/Services/FeatureAuthorizationService.cs - Feature definitions
KTransport.API/Common/FeatureConstants.cs
Transport operations
- Shipment API
KTransport.API/Controllers/ShipmentController.cs - Shipment management
KTransport.API/Services/ShipmentService.cs - Trip API
KTransport.API/Controllers/TripController.cs - Trip operations
KTransport.API/Services/TripService.cs - Manifest operations
KTransport.API/Services/ManifestService.cs - Shipment tracking
KTransport.API/Services/TrackingService.cs - Delivery proof
KTransport.API/Services/PodService.cs - Fleet management
KTransport.API/Services/FleetService.cs - Shipment records
KTransport.API/Models/Shipment.cs - Trip records
KTransport.API/Models/Trip.cs - Locations
KTransport.API/Models/Location.cs
Business capabilities
- Party records
KTransport.API/Services/PartyService.cs - Billing and invoices
KTransport.API/Services/InvoiceService.cs - Claims operations
KTransport.API/Services/CargoClaimService.cs - Reports and analytics
KTransport.API/Services/ReportService.cs - Party records
KTransport.API/Models/Party.cs
Tenant platform
- Tenant administration
KTransport.API/Controllers/TenantController.cs - Tenant management
KTransport.API/Services/TenantService.cs - Tenant context
KTransport.API/Services/ITenantContext.cs - Tenant records
KTransport.API/Models/Tenant.cs - Tenant-scoped data
KTransport.API/Data/KTransportDbContext.cs - Number sequences
KTransport.API/Services/NumberingSequenceService.cs - User records
KTransport.API/Models/User.cs - Tenant-scoped entities
KTransport.API/Common/ITenantScopedEntity.cs
Other components
- API user
Connections 25
- API user → Authentication API: authenticates
- Authentication API → Authentication: delegates to
KTransport.API/Controllers/AuthController.cs - API startup → Tenant-scoped data: configures
KTransport.API/Program.cs - API startup → Tenant context: registers
KTransport.API/Program.cs - Authentication → Tenant-scoped data: reads and writes
KTransport.API/Services/AuthService.cs - Authentication → User records: loads
KTransport.API/Services/AuthService.cs - Feature authorization → Tenant-scoped data: queries
KTransport.API/Services/FeatureAuthorizationService.cs - Feature authorization → Tenant context: uses
KTransport.API/Services/FeatureAuthorizationService.cs - Feature authorization → Feature definitions: normalizes
KTransport.API/Services/FeatureAuthorizationService.cs - Shipment API → Shipment management: delegates to
- Shipment management → Tenant-scoped data: reads and writes
KTransport.API/Services/ShipmentService.cs - Shipment management → Number sequences: gets number
KTransport.API/Services/ShipmentService.cs - Shipment management → Shipment records: creates and loads
KTransport.API/Services/ShipmentService.cs - Shipment management → Party records: looks up
KTransport.API/Services/ShipmentService.cs - Shipment management → Locations: loads hubs
KTransport.API/Services/ShipmentService.cs - Trip API → Trip operations: delegates to
KTransport.API/Controllers/TripController.cs - Tenant administration → Tenant management: delegates to
KTransport.API/Controllers/TenantController.cs - Tenant administration → Tenant context: uses
KTransport.API/Controllers/TenantController.cs - Tenant administration → Tenant records: accepts and returns
KTransport.API/Controllers/TenantController.cs - Tenant management → Tenant-scoped data: persists
- Tenant-scoped data → Tenant context: filters by
KTransport.API/Data/KTransportDbContext.cs - Tenant-scoped data → Tenant-scoped entities: applies tenant rules
- Tenant-scoped data → Tenant records: maps
KTransport.API/Data/KTransportDbContext.cs - Tenant-scoped data → Shipment records: maps
KTransport.API/Data/KTransportDbContext.cs - Tenant-scoped data → Trip records: maps
KTransport.API/Data/KTransportDbContext.cs