How ak4m410x01/ecommerceapi works
E-Commerce API is an ASP.NET Core store backend. Clients call its API for authentication and product catalog operations; catalog queries use application handlers, repository abstractions, and persistence, while authentication delegates identity, token, and email work to infrastructure services. The README also advertises cart, order, and payment capabilities, but the supplied tree contains no corresponding implementation paths, so they are noted as unimplemented or unverified rather than modeled as runtime components. Relationships involving unsampled controllers are left unverified.
Main entry points: Controllers HTTP API · Product Catalog queries · AuthenticationService.cs Authentication service · UnitOfWork.cs Unit of work
Components 19
API presentation
- HTTP API
ECommerceAPI.Presentation/Controllers - Authentication routes
ECommerceAPI.Presentation/Controllers/User/Authentication/AuthenticationController.cs - Catalog routes
ECommerceAPI.Presentation/Controllers/Product
Application workflows
- Authentication workflow
ECommerceAPI.Application/Features/User/Authentication - Catalog queries
ECommerceAPI.Application/Features/Product - Profile lookup
ECommerceAPI.Application/Features/User/Profiles/Queries/GetProfileByUserAccessToken/Handlers/GetProfileByUserAccessTokenQueryHandler.cs - Request validation
ECommerceAPI.Application/Behaviors/Validations/ValidationPipelineBehavior.cs - Product domain
ECommerceAPI.Domain/Entities/Products/Product.cs
Identity services
- Authentication service
ECommerceAPI.Infrastructure/Services/Authentication/AuthenticationService.cs - Token service
ECommerceAPI.Infrastructure/Services/Authentication/TokenService.cs - Mail service
ECommerceAPI.Infrastructure/Services/Mail/MailService.cs
Data persistence
- Repository abstraction
ECommerceAPI.Application/Interfaces/Repositories/Base/IBaseRepository.cs - Unit of work
ECommerceAPI.Persistence/UnitOfWork/UnitOfWork.cs - Application database
ECommerceAPI.Persistence/DbContexts/ApplicationDbContext.cs
Other components
- API client
- SQL Server
- Cart capability
- Order capability
- Payment capability
Connections 17
- API client → HTTP API: sends requests
README.md - HTTP API → Authentication routes: routes requests
ECommerceAPI.Presentation/Controllers/User/Authentication/AuthenticationController.cs - HTTP API → Catalog routes: routes requests
ECommerceAPI.Presentation/Controllers/Product/Inventories/InventoriesController.cs - Authentication routes → Authentication workflow: dispatches commands
ECommerceAPI.Presentation/Controllers/User/Authentication/AuthenticationController.cs - Catalog routes → Catalog queries: dispatches queries
ECommerceAPI.Presentation/Controllers/Product/Inventories/InventoriesController.cs - Catalog queries → Repository abstraction: queries through
ECommerceAPI.Application/Features/Product/Categories/Queries/GetAllCategories/Handlers/GetAllCategoriesQueryHandler.cs - Catalog queries → Unit of work: uses
ECommerceAPI.Application/Features/Product/Categories/Queries/GetAllCategories/Handlers/GetAllCategoriesQueryHandler.cs - Unit of work → Repository abstraction: implements
ECommerceAPI.Persistence/UnitOfWork/UnitOfWork.cs - Unit of work → Application database: uses
ECommerceAPI.Persistence/UnitOfWork/UnitOfWork.cs - Authentication workflow → Authentication service: delegates to
- Authentication service → Token service: generates tokens
ECommerceAPI.Infrastructure/Services/Authentication/AuthenticationService.cs - Authentication service → Mail service: sends email
ECommerceAPI.Infrastructure/Services/Authentication/AuthenticationService.cs - Profile lookup → HTTP API: reads authorization header
ECommerceAPI.Application/Features/User/Profiles/Queries/GetProfileByUserAccessToken/Handlers/GetProfileByUserAccessTokenQueryHandler.cs - Application database → SQL Server: persists data
README.md - API client → Cart capability: uses advertised feature
README.md - API client → Order capability: uses advertised feature
README.md - API client → Payment capability: uses advertised feature
README.md