How mhmdkhalid4444-eng/ecommerceproject-api works
This is a Clean Architecture ecommerce API. Its main customer workflow exposes catalog and basket operations, creates orders from baskets, and supports payment; authentication and delivery methods are separate capabilities. The graph preserves documented features even where controller or service implementations were not sampled. Edges are limited to relationships visible in excerpts, the source index, or README; dashed links indicate documented integrations whose implementation relationship was not verified in the excerpts.
Main entry points: Program.cs Ecommerce API · PaymentService.cs Payment intents · OrderController.cs Order endpoints · AuthenticationService.cs Authentication workflow
Components 22
HTTP API
- Ecommerce API
Ecommerce.API/Program.cs - Authentication endpoints
Ecommerce.API/Controllers/AuthenticationController.cs - Catalog endpoints
Ecommerce.API/Controllers/ProductsController.cs - Basket endpoints
Ecommerce.API/Controllers/BasketController.cs - Order endpoints
Ecommerce.API/Controllers/OrderController.cs - Payment endpoints
Ecommerce.API/Controllers/PaymentController.cs
Application workflows
- Authentication workflow
Ecommerce.Application/Services/AuthenticationService.cs - Product catalog
Ecommerce.Application/Services/ProductService.cs - Shopping basket
Ecommerce.Application/Services/BasketService.cs - Order management
Ecommerce.Application/Services/OrderService.cs - Payment intents
Ecommerce.Application/Services/PaymentService.cs - Delivery methods
Ecommerce.Application/Services/OrderService.cs
Identity and access
- Identity operations
Ecommerce.Infrastructure/Identity/Service/IdentityService.cs - JWT tokens
Ecommerce.Infrastructure/Identity/Service/TokenService.cs
Persistence and integrations
- Identity database
Ecommerce.Infrastructure/Identity/Data/StoreIdentitydbcontext.cs - Unit of work
Ecommerce.Infrastructure/Repositories/UnitOfWork.cs - Store database
Ecommerce.Infrastructure/Data/StoreDbContext.cs - Basket repository
Ecommerce.Infrastructure/Repositories/BasketRepository.cs - Cache repository
Ecommerce.Infrastructure/Repositories/CacheRepository.cs - Redis
- Stripe gateway
Ecommerce.Infrastructure/Payments/StripePaymentGeteway.cs
Other components
- Shopper
Connections 22
- Shopper → Ecommerce API: calls
- Ecommerce API → Authentication endpoints: routes
- Ecommerce API → Catalog endpoints: routes
- Ecommerce API → Basket endpoints: routes
- Ecommerce API → Order endpoints: routes
- Ecommerce API → Payment endpoints: routes
- Authentication endpoints → Authentication workflow: invokes
Ecommerce.API/Controllers/AuthenticationController.cs - Order endpoints → Order management: invokes
Ecommerce.API/Controllers/OrderController.cs - Payment endpoints → Payment intents: invokes
Ecommerce.API/Controllers/PaymentController.cs - Authentication workflow → Identity operations: delegates
Ecommerce.Application/Services/AuthenticationService.cs - Authentication workflow → JWT tokens: creates tokens
Ecommerce.Application/Services/AuthenticationService.cs - Order management → Basket repository: reads basket
Ecommerce.Application/Services/OrderService.cs - Order management → Unit of work: loads and saves
Ecommerce.Application/Services/OrderService.cs - Payment intents → Basket repository: reads basket
Ecommerce.Application/Services/PaymentService.cs - Payment intents → Unit of work: loads and saves
Ecommerce.Application/Services/PaymentService.cs - Payment intents → Stripe gateway: requests payment
- Shopping basket → Redis: stores basket
- Identity operations → Identity database: uses identity store
- Unit of work → Store database: accesses store data
- Catalog endpoints → Product catalog: serves catalog
- Basket endpoints → Shopping basket: serves basket
- Order endpoints → Delivery methods: serves delivery methods