How beshoy-05/e-commerceapi works
This is an e-commerce API organized around product discovery, basket management, order creation and lookup, and account registration/login. Requests enter through presentation controllers, which use a service manager to reach domain services; those services use repository abstractions and map domain data to shared DTOs. Persistence includes product/order data contexts and identity storage, while baskets and caching are separate repository concerns. The README names no capabilities; the feature map follows the controllers, service implementations, and source index. Several persistence and optional integration links are omitted where the supplied excerpts do not show their runtime wiring.
Main entry points: ServiceManager.cs Service manager · ProductService.cs Product service · OrderService.cs Order service · DTOs Shared DTOs
Components 23
API surface
- Product API
Infrastructure/Presentation/Controllers/ProductController.cs - Basket API
Infrastructure/Presentation/Controllers/BasketController.cs - Order API
Infrastructure/Presentation/Controllers/OrderController.cs - Authentication API
Infrastructure/Presentation/Controllers/AuthenticationController.cs
Commerce services
- Service manager
Core/Services/Services/ServiceManager.cs - Product service
Core/Services/Services/ProductService.cs - Basket service
Core/Services/Services/BasketService.cs - Order service
Core/Services/Services/OrderService.cs - Authentication service
Core/Services/Services/Authentication.cs - Product specifications
Core/Services/Specifications
Persistence
- Basket repository
Infrastructure/persistence/Implementation/BasketRepo.cs - Unit of work
Infrastructure/persistence/Implementation/UnitOfWork.cs - Commerce database
Infrastructure/persistence/Data/StoreDbContext.cs - Identity database
Infrastructure/persistence/Identity/StoreIdentityDbContext.cs - Cache repository
Infrastructure/persistence/Implementation/CacheRepo.cs
Contracts and models
- Product models
Core/DomainLayer/Models/ProductModules - Basket models
Core/DomainLayer/Models/BasketModules - Order models
Core/DomainLayer/Models/OrderModules - Identity models
Core/DomainLayer/Models/IdentityModules - Shared DTOs
Shared/DTOs
Web runtime
- Web application
e-commerce.web/Program.cs - Exception handler
e-commerce.web/Middlewares/CustomeExeptionHandler.cs
Other components
- Customer
Connections 25
- Customer → Product API: browses
Infrastructure/Presentation/Controllers/ProductController.cs - Customer → Basket API: manages basket
Infrastructure/Presentation/Controllers/BasketController.cs - Customer → Order API: places orders
Infrastructure/Presentation/Controllers/OrderController.cs - Customer → Authentication API: authenticates
Infrastructure/Presentation/Controllers/AuthenticationController.cs - Product API → Service manager: resolves services
Infrastructure/Presentation/Controllers/ProductController.cs - Basket API → Service manager: resolves services
Infrastructure/Presentation/Controllers/BasketController.cs - Order API → Service manager: resolves services
Infrastructure/Presentation/Controllers/OrderController.cs - Authentication API → Service manager: resolves services
Infrastructure/Presentation/Controllers/AuthenticationController.cs - Service manager → Product service: provides
Core/Services/Services/ServiceManager.cs - Service manager → Basket service: provides
Core/Services/Services/ServiceManager.cs - Service manager → Order service: provides
Core/Services/Services/ServiceManager.cs - Service manager → Authentication service: provides
Core/Services/Services/ServiceManager.cs - Product service → Product specifications: builds queries
Core/Services/Services/ProductService.cs - Order service → Basket repository: loads basket
Core/Services/Services/OrderService.cs - Order service → Unit of work: reads and saves
Core/Services/Services/OrderService.cs - Product service → Unit of work: queries repositories
Core/Services/Services/ProductService.cs - Product service → Shared DTOs: maps results
Core/Services/Services/ProductService.cs - Basket service → Basket repository: reads and writes
Core/Services/Services/BasketService.cs - Basket service → Shared DTOs: maps baskets
Core/Services/Services/BasketService.cs - Order service → Shared DTOs: maps orders
Core/Services/Services/OrderService.cs - Authentication service → Identity models: creates users
Core/Services/Services/Authentication.cs - Authentication service → Shared DTOs: accepts and returns
Core/Services/Services/Authentication.cs - Commerce database → Product models: stores products
Infrastructure/persistence/Data/StoreDbContext.cs - Identity database → Identity models: stores identities
Infrastructure/persistence/Identity/StoreIdentityDbContext.cs - Web application → Exception handler: configures middleware
e-commerce.web/Program.cs