How mahmoud8276/pharmacore works
This repository implements a pharmacy-management REST API. A client sends versioned requests to API controllers, which delegate catalog and supply operations to application services and return standardized responses; services use repositories and a unit of work to persist pharmacy data. The tree also documents inventory, account/user, supplier, product-batch, and reference-catalog capabilities. Source excerpts verify product and supply controller delegation and installment-payment persistence; most other feature links are documented only by the source index, so their internal call paths are not asserted.
Main entry points: ProductsController.cs Product endpoints · SuppliesController.cs Supply endpoints · AppDbContext.cs Application database · SupplyInstallmentService.cs Installment service
Components 20
HTTP API
- Controller base
src/Pharmacy.System.Api/Controllers/BaseController.cs - Product endpoints
src/Pharmacy.System.Api/Controllers/V1/ProductsController.cs - Supply endpoints
src/Pharmacy.System.Api/Controllers/V1/SuppliesController.cs - Other endpoints
src/Pharmacy.System.Api/Controllers/V1
Application services
- Product service
src/Pharmacy.System.Services/IServices/IProductService.cs - Product packaging
src/Pharmacy.System.Services/IServices/IProductPackagingService.cs - Supply service
src/Pharmacy.System.Services/IServices/ISupplyService.cs - Supply payments
src/Pharmacy.System.Services/IServices/ISupplyPaymentService.cs - Installment service
src/Pharmacy.System.Services/Services/SupplyInstallmentService.cs - Service responses
src/Pharmacy.System.Services/Responses/Response.cs
Pharmacy domain
- Product catalog
src/Pharmacy.System.Core/Models/ProductActiveIngredient.cs - Supply and installments
src/Pharmacy.System.Core/Models/Supply.cs - Repository model
src/Pharmacy.System.Core/Models/Repository.cs - Product ingredient DTO
src/Pharmacy.System.Core/Dtos/ProductActiveIngredientDtos/ProductActiveIngredientDto.cs - Shared entity base
src/Pharmacy.System.Core/Models/BaseModel.cs
Persistence
- Unit of work
src/Pharmacy.System.Infrastructure/Repositories/UnitOfWork.cs - Installment repository
src/Pharmacy.System.Infrastructure/Repositories/SupplyInstallmentRepository.cs - Application database
src/Pharmacy.System.Infrastructure/DbContexts/AppDbContext.cs - Repository registration
src/Pharmacy.System.Services/ApplicatoinServicesConfig/Repositories.cs
Other components
- API client
Connections 17
- API client → Product endpoints: requests
src/Pharmacy.System.Api/Controllers/V1/ProductsController.cs - API client → Supply endpoints: requests
src/Pharmacy.System.Api/Controllers/V1/SuppliesController.cs - Product endpoints → Product service: delegates to
src/Pharmacy.System.Api/Controllers/V1/ProductsController.cs - Product endpoints → Product packaging: delegates to
src/Pharmacy.System.Api/Controllers/V1/ProductsController.cs - Supply endpoints → Supply service: delegates to
src/Pharmacy.System.Api/Controllers/V1/SuppliesController.cs - Supply endpoints → Supply payments: delegates to
src/Pharmacy.System.Api/Controllers/V1/SuppliesController.cs - Supply endpoints → Installment service: delegates to
src/Pharmacy.System.Api/Controllers/V1/SuppliesController.cs - Controller base → Service responses: formats status
src/Pharmacy.System.Api/Controllers/BaseController.cs - Product endpoints → Product ingredient DTO: accepts and returns
src/Pharmacy.System.Api/Controllers/V1/ProductsController.cs - Installment service → Installment repository: loads and saves
src/Pharmacy.System.Services/Services/SupplyInstallmentService.cs - Installment repository → Application database: queries
src/Pharmacy.System.Infrastructure/Repositories/SupplyInstallmentRepository.cs - Repository registration → Unit of work: registers
src/Pharmacy.System.Services/ApplicatoinServicesConfig/Repositories.cs - Application database → Supply and installments: stores
src/Pharmacy.System.Infrastructure/DbContexts/AppDbContext.cs - Application database → Repository model: stores
src/Pharmacy.System.Infrastructure/DbContexts/AppDbContext.cs - Supply and installments → Shared entity base: inherits
src/Pharmacy.System.Core/Models/Supply.cs - Repository model → Shared entity base: inherits
src/Pharmacy.System.Core/Models/Repository.cs - Other endpoints → API client: serves requests