How eneskllokoqi1/shopsphere works
ShopService is an e-commerce backend API. The principal customer journey is account access, product discovery, cart management, and order placement; catalog, category, coupon, and review operations are distinct supporting capabilities. The application separates HTTP controllers, application services, domain entities, and EF Core persistence. Source excerpts and the index support several concrete calls and persistence links; for unsampled feature implementations, the graph preserves their modules but omits unverified call relationships.
Main entry points: AppDbContext.cs EF Core Context · ReviewService.cs Review Service · Review.cs Review · ReviewRepository.cs Review Repository
Components 31
HTTP API
- Authentication API
src/ShopService/ShopService.API/Controllers/AuthController.cs - Product API
src/ShopService/ShopService.API/Controllers/ProductController.cs - Category API
src/ShopService/ShopService.API/Controllers/CategoriesController.cs - Cart API
src/ShopService/ShopService.API/Controllers/CartController.cs - Order API
src/ShopService/ShopService.API/Controllers/OrderController.cs - Coupon API
src/ShopService/ShopService.API/Controllers/CouponController.cs - Review API
src/ShopService/ShopService.API/Controllers/ReviewController.cs
Application Services
- Identity Service
src/ShopService/ShopService.Application/Service/AuthService.cs - Product Service
src/ShopService/ShopService.Application/Service/ProductService.cs - Category Service
src/ShopService/ShopService.Application/Service/CategoryService.cs - Cart Service
src/ShopService/ShopService.Application/Service/CartService.cs - Order Service
src/ShopService/ShopService.Application/Service/OrderService.cs - Coupon Service
src/ShopService/ShopService.Application/Service/CouponService.cs - Review Service
src/ShopService/ShopService.Application/Service/ReviewService.cs - Review Repository Contract
src/ShopService/ShopService.Application/Interfaces/IReviewRepository.cs - Coupon Repository Contract
src/ShopService/ShopService.Application/Interfaces/ICouponRepository.cs - Review Response
src/ShopService/ShopService.Application/DTOs/ReviewDTOs/ReviewResponseDTO.cs - Order Response
src/ShopService/ShopService.Application/DTOs/OrderDTOs/OrderResponseDTO.cs - Product Response
src/ShopService/ShopService.Application/DTOs/ProductDTOs/ProductResponseDTO.cs - Coupon Responses
src/ShopService/ShopService.Application/DTOs/CouponDTOs/CouponResponseDTO.cs
Commerce Domain
- User
src/ShopService/ShopService.Domain/Entities/User.cs - Product
src/ShopService/ShopService.Domain/Entities/Product.cs - Coupon
src/ShopService/ShopService.Domain/Entities/Coupon.cs - Order
src/ShopService/ShopService.Domain/Entities/Order.cs - Order Status
src/ShopService/ShopService.Domain/Enums/OrderStatus.cs - Order Item
src/ShopService/ShopService.Domain/Entities/OrderItem.cs - Review
src/ShopService/ShopService.Domain/Entities/Review.cs
Persistence
- EF Core Context
src/ShopService/ShopService.Infrastructure/Data/AppDbContext.cs - Review Repository
src/ShopService/ShopService.Infrastructure/Repositories/ReviewRepository.cs - Order Repository
src/ShopService/ShopService.Infrastructure/Repositories/OrderRepository.cs
Other components
- Shopper
Connections 25
- Shopper → Authentication API: uses
- Shopper → Product API: browses
- Shopper → Cart API: manages
- Shopper → Order API: places orders
- Shopper → Review API: reviews products
- Authentication API → Identity Service: calls
- Product API → Product Service: calls
- Category API → Category Service: calls
- Cart API → Cart Service: calls
src/ShopService/ShopService.API/Controllers/CartController.cs - Order API → Order Service: calls
src/ShopService/ShopService.API/Controllers/OrderController.cs - Coupon API → Coupon Service: calls
src/ShopService/ShopService.API/Controllers/CouponController.cs - Review API → Review Service: calls
src/ShopService/ShopService.API/Controllers/ReviewController.cs - Review Service → Review Repository Contract: delegates to
src/ShopService/ShopService.Application/Service/ReviewService.cs - Review Repository → EF Core Context: reads and writes
src/ShopService/ShopService.Infrastructure/Repositories/ReviewRepository.cs - Order Repository → EF Core Context: reads and writes
src/ShopService/ShopService.Infrastructure/Repositories/OrderRepository.cs - Review Repository → Review: maps and persists
src/ShopService/ShopService.Infrastructure/Repositories/ReviewRepository.cs - Review Service → Review: maps
src/ShopService/ShopService.Application/Service/ReviewService.cs - Order Repository → Coupon Repository Contract: uses
src/ShopService/ShopService.Infrastructure/Repositories/OrderRepository.cs - EF Core Context → Order: maps
src/ShopService/ShopService.Infrastructure/Data/AppDbContext.cs - EF Core Context → Order Item: maps
src/ShopService/ShopService.Infrastructure/Data/AppDbContext.cs - EF Core Context → Review: maps
src/ShopService/ShopService.Infrastructure/Data/AppDbContext.cs - EF Core Context → Product: maps
src/ShopService/ShopService.Infrastructure/Data/AppDbContext.cs - EF Core Context → Coupon: maps
src/ShopService/ShopService.Infrastructure/Data/AppDbContext.cs - EF Core Context → User: maps
src/ShopService/ShopService.Infrastructure/Data/AppDbContext.cs - Order → Order Status: tracks
src/ShopService/ShopService.Domain/Entities/Order.cs