How xcesoo/manta works
Manta is a parcel logistics API for creating and tracking parcels, managing delivery points and vehicles, authenticating users, and updating parcel status during delivery. The principal workflow enters through the parcel API, creates or retrieves parcels, and applies delivery operations and status rules; infrastructure persists domain state and supports message processing. The source index provides call/reference evidence for the shown links. No README or consumer/controller dispatch implementation was provided, so those relationships are not asserted.
Main entry points: ParcelDeliveryService.cs Delivery operations · AcceptParcelAtDeliveryPointHandler.cs Accept at point · ParcelController.cs Parcel API · CreateParcelCommandHandler.cs Create parcel
Components 25
Web API
- Parcel API
Manta.WebApi/Controllers/ParcelController.cs - Authentication API
Manta.WebApi/Controllers/AuthController.cs - Delivery point API
Manta.WebApi/Controllers/DeliveryPointController.cs
Application workflows
- Create parcel
Manta.Application/Commands/Parcel/CreateParcelCommandHandler.cs - Accept at point
Manta.Application/Handlers/AcceptParcelAtDeliveryPointHandler.cs - Parcel lookup
Manta.Application/Queries/Parcel/GetParcelByIdQueryHandler.cs - Create delivery point
Manta.Application/Commands/DeliveryPoint/CreateDeliveryPointCommandHandler.cs - Delivery point lookup
Manta.Application/Queries/DeliveryPoint/GetDeliveryPointByIdQueryHandler.cs - Login
Manta.Application/Queries/Auth/LoginQueryHandler.cs - Delivery operations
Manta.Application/Services/ParcelDeliveryService.cs
Logistics domain
- Parcel state
Manta.Domain/Entities/Parcel.cs - Users and roles
Manta.Domain/Entities/User.cs - Points and vehicles
Manta.Domain/Entities/DeliveryPoint.cs - Status transitions
Manta.Domain/Services/ParcelStatusService.cs - Rule context
Manta.Domain/StatusRules/Context/RuleContext.cs
Persistence and messaging
- Parcel repository
Manta.Infrastructure/Repositories/ParcelRepository.cs - User repository
Manta.Infrastructure/Repositories/UserRepository.cs - Point repository
Manta.Infrastructure/Repositories/DeliveryPointRepository.cs - Vehicle repository
Manta.Infrastructure/Repositories/DeliveryVehicleRepository.cs - Application database
Manta.Infrastructure/Persistence/MantaDbContext.cs - Integration queue
Manta.Infrastructure/Messaging/IntegrationMessageQueue.cs - Parcel message consumer
Manta.Infrastructure/Consumers/CreateParcelConsumer.cs - Status update consumer
Manta.Infrastructure/Consumers/ParcelStatusUpdateConsumer.cs - JWT provider
Manta.Infrastructure/Auth/JwtProvider.cs
Other components
- API caller
Connections 33
- API caller → Parcel API: requests
Manta.WebApi/Controllers/ParcelController.cs - API caller → Authentication API: authenticates
Manta.WebApi/Controllers/AuthController.cs - API caller → Delivery point API: manages points
Manta.WebApi/Controllers/DeliveryPointController.cs - Parcel API → Create parcel: creates
Manta.WebApi/Controllers/ParcelController.cs - Parcel API → Parcel lookup: queries
Manta.WebApi/Controllers/ParcelController.cs - Parcel API → Delivery operations: delegates delivery
Manta.WebApi/Controllers/ParcelController.cs - Delivery point API → Create delivery point: creates
Manta.WebApi/Controllers/DeliveryPointController.cs - Delivery point API → Delivery point lookup: queries
Manta.WebApi/Controllers/DeliveryPointController.cs - Authentication API → Login: logs in
Manta.WebApi/Controllers/AuthController.cs - Create parcel → Parcel state: creates
Manta.Application/Commands/Parcel/CreateParcelCommandHandler.cs - Create parcel → Integration queue: enqueues
Manta.Application/Commands/Parcel/CreateParcelCommandHandler.cs - Accept at point → Parcel repository: loads and updates
Manta.Application/Handlers/AcceptParcelAtDeliveryPointHandler.cs - Accept at point → User repository: loads user
Manta.Application/Handlers/AcceptParcelAtDeliveryPointHandler.cs - Accept at point → Point repository: loads point
Manta.Application/Handlers/AcceptParcelAtDeliveryPointHandler.cs - Accept at point → Vehicle repository: loads vehicle
Manta.Application/Handlers/AcceptParcelAtDeliveryPointHandler.cs - Accept at point → Status transitions: applies status
Manta.Application/Handlers/AcceptParcelAtDeliveryPointHandler.cs - Delivery operations → Parcel repository: uses
Manta.Application/Services/ParcelDeliveryService.cs - Delivery operations → Point repository: uses
Manta.Application/Services/ParcelDeliveryService.cs - Delivery operations → Vehicle repository: uses
Manta.Application/Services/ParcelDeliveryService.cs - Delivery operations → User repository: uses
Manta.Application/Services/ParcelDeliveryService.cs - Delivery operations → Status transitions: applies transitions
Manta.Application/Services/ParcelDeliveryService.cs - Login → User repository: finds user
Manta.Application/Queries/Auth/LoginQueryHandler.cs - Login → JWT provider: issues token
Manta.Application/Queries/Auth/LoginQueryHandler.cs - Parcel lookup → Parcel repository: reads parcel
Manta.Application/Queries/Parcel/GetParcelByIdQueryHandler.cs - Delivery point lookup → Point repository: reads point
Manta.Application/Queries/DeliveryPoint/GetDeliveryPointByIdQueryHandler.cs - Status transitions → Rule context: evaluates rules
Manta.Domain/Services/ParcelStatusService.cs - Status transitions → Parcel state: changes status
Manta.Domain/Services/ParcelStatusService.cs - Parcel repository → Application database: reads and writes
Manta.Infrastructure/Repositories/ParcelRepository.cs - User repository → Application database: reads and writes
Manta.Infrastructure/Repositories/UserRepository.cs - Point repository → Application database: reads and writes
- Vehicle repository → Application database: reads and writes
Manta.Infrastructure/Repositories/DeliveryVehicleRepository.cs - Parcel message consumer → Create parcel: dispatches
- Status update consumer → Accept at point: dispatches updates