How saimahmt03/minimalapi works
MinimalApi is a category CRUD HTTP API: callers request category listing, lookup, creation, or removal, and receive category data. Requests enter through mapped endpoints, pass through a service abstraction to a repository, and use an in-memory list as mock storage. DTOs define the operation inputs and outputs; a helper copies category records for list results. The README is empty, so capability coverage comes from the endpoint and source index; startup wiring was not sampled, so no registration relationship is asserted.
Main entry points: CategoryRepository.cs Category repository · CategoryEndpoint.cs Category endpoints · CategoryService.cs Category service · Helper.cs Category copier
Components 11
HTTP API
- Category endpoints
MinimalApi/Endpoints/CategoryEndpoint.cs - Request DTOs
MinimalApi/DTO/category - Response DTOs
MinimalApi/DTO/category
Category logic
- Service contract
MinimalApi/Services/Interface/ICategoryService.cs - Category service
MinimalApi/Services/Service/CategoryService.cs - Category model
MinimalApi/Models/Category.cs
Category data
- Repository contract
MinimalApi/Reporsitories/Interface/ICategoryRepository.cs - Category repository
MinimalApi/Reporsitories/Repository/CategoryRepository.cs - In-memory categories
MinimalApi/Reporsitories/Repository/CategoryRepository.cs - Category copier
MinimalApi/Helper/Helper.cs
Other components
- API caller
Connections 13
- API caller → Category endpoints: calls routes
MinimalApi/Endpoints/CategoryEndpoint.cs - Category endpoints → Service contract: calls
MinimalApi/Endpoints/CategoryEndpoint.cs - Category service → Service contract: implements
MinimalApi/Services/Service/CategoryService.cs - Category service → Repository contract: delegates to
MinimalApi/Services/Service/CategoryService.cs - Category repository → Repository contract: implements
MinimalApi/Reporsitories/Repository/CategoryRepository.cs - Category repository → In-memory categories: reads and writes
MinimalApi/Reporsitories/Repository/CategoryRepository.cs - Category repository → Category copier: copies lists
MinimalApi/Reporsitories/Repository/CategoryRepository.cs - Category copier → Category model: creates copies
MinimalApi/Helper/Helper.cs - Category repository → Category model: uses records
MinimalApi/Reporsitories/Repository/CategoryRepository.cs - Category endpoints → Request DTOs: binds inputs
MinimalApi/Endpoints/CategoryEndpoint.cs - Category endpoints → Response DTOs: returns results
MinimalApi/Endpoints/CategoryEndpoint.cs - Category repository → Request DTOs: consumes inputs
MinimalApi/Reporsitories/Repository/CategoryRepository.cs - Category repository → Response DTOs: builds results
MinimalApi/Reporsitories/Repository/CategoryRepository.cs