How gustavopurkoot/barbearia_csharp works
Barbearia is a .NET Minimal API for managing barbershop services and appointments. An API client uses the service endpoints to list, retrieve, create, update, or delete services; appointment endpoints provide the same operations for bookings, including future-date and duration-aware conflict checks on creation. Both workflows use Entity Framework Core context sets backed by SQLite. The domain models represent services and appointments, with appointments linked to a service. The README documents these capabilities; the graph’s implementation links are based on the sampled Program.cs and model/context excerpts.
Main entry points: Program.cs Service endpoints · AppDataContext.cs EF context · Agendamento.cs Appointment · Servico.cs Service
Components 7
API workflows
- Service endpoints
Barbearia/Program.cs - Appointment endpoints
Barbearia/Program.cs
Barbershop domain
- Service
Barbearia/Models/Servico.cs - Appointment
Barbearia/Models/Agendamento.cs
Persistence
- EF context
Barbearia/Data/AppDataContext.cs - SQLite database
Other components
- API client
Connections 11
- API client → Service endpoints: calls
README.md - API client → Appointment endpoints: calls
README.md - Service endpoints → EF context: reads and writes
Barbearia/Program.cs - Appointment endpoints → EF context: reads and writes
Barbearia/Program.cs - EF context → Service: tracks
Barbearia/Data/AppDataContext.cs - EF context → Appointment: tracks
Barbearia/Data/AppDataContext.cs - Appointment → Service: references
Barbearia/Models/Agendamento.cs - Service endpoints → Service: handles
Barbearia/Program.cs - Appointment endpoints → Appointment: handles
Barbearia/Program.cs - Service endpoints → SQLite database: configures via EF
Barbearia/Program.cs - Appointment endpoints → SQLite database: configures via EF
Barbearia/Program.cs