How vianahub-pt/vianahub.global.gerit.api works
VianaHub.Global.Gerit is a multi-tenant business-management API: its surface covers identity and access, client and workforce records, visits and field resources, and tenant plans and subscriptions. A typical user workflow enters through an API endpoint, performs application/domain operations, and persists data through repositories and the EF Core context. The README’s explicit operational constraint is that database preparation is external to host startup. Some domain branches are represented from the tree; their internal calls were not sampled, so those links are omitted or marked unverified.
Main entry points: Program.cs API host · AuthAppService.cs Authentication service · GeritDbContext.cs EF Core context · Identity Identity endpoints
Components 15
API surface
- API host
src/VianaHub.Global.Gerit.Api/Program.cs - Identity endpoints
src/VianaHub.Global.Gerit.Api/Endpoints/Identity - Business endpoints
src/VianaHub.Global.Gerit.Api/Endpoints/Business - Billing endpoints
src/VianaHub.Global.Gerit.Api/Endpoints/Billing - Job endpoint
src/VianaHub.Global.Gerit.Api/Endpoints/Job/JobEndpoint.cs
Application and domain
- Authentication service
src/VianaHub.Global.Gerit.Application/Services/Identity/AuthAppService.cs - Client services
src/VianaHub.Global.Gerit.Application/Services/Business/ClientAddressAppService.cs - Subscription domain
src/VianaHub.Global.Gerit.Domain/Services/Billing/SubscriptionDomainService.cs - Client model
src/VianaHub.Global.Gerit.Domain/Entities/Business/ClientEntity.cs - Subscription model
src/VianaHub.Global.Gerit.Domain/Entities/Billing/SubscriptionEntity.cs - JWT key service
src/VianaHub.Global.Gerit.Domain/Services/Identity/JwtKeyDomainService.cs
Persistence
- Data repositories
src/VianaHub.Global.Gerit.Infra.Data/Repository - EF Core context
src/VianaHub.Global.Gerit.Infra.Data/Context/GeritDbContext.cs
Background jobs
- Job services
src/VianaHub.Global.Gerit.Infra.Job/Services
Other components
- API consumer
Connections 14
- API consumer → API host: sends requests
- API host → Identity endpoints: routes to
- API host → Business endpoints: routes to
- API host → Billing endpoints: routes to
- Identity endpoints → Authentication service: delegates to
- Business endpoints → Client services: delegates to
- Authentication service → EF Core context: sets tenant context
src/VianaHub.Global.Gerit.Application/Services/Identity/AuthAppService.cs - Authentication service → Subscription domain: checks subscription
src/VianaHub.Global.Gerit.Application/Services/Identity/AuthAppService.cs - Authentication service → JWT key service: loads active key
src/VianaHub.Global.Gerit.Domain/Services/Identity/JwtKeyDomainService.cs - Client services → Data repositories: uses repositories
src/VianaHub.Global.Gerit.Application/Services/Business/ClientAddressAppService.cs - Data repositories → EF Core context: queries and saves
src/VianaHub.Global.Gerit.Infra.Data/Repository/Billing/SubscriptionDataRepository.cs - EF Core context → Client model: maps entities
src/VianaHub.Global.Gerit.Infra.Data/Context/GeritDbContext.cs - EF Core context → Subscription model: maps entities
src/VianaHub.Global.Gerit.Infra.Data/Context/GeritDbContext.cs - API host → Job endpoint: routes to