How jtg-induction/dot-net-assignment-shivam-rao-uid00817 works
This is an ASP.NET Web API backend for restaurant management. The evidenced runtime workflow centers on account registration and login: API clients call authentication endpoints, services validate users and manage refresh tokens, and repositories persist changes through Entity Framework. Bearer-token middleware validates protected requests; user endpoints support account updates and deactivation, including revoking refresh tokens. The README describes restaurant browsing, ordering, owner order management, restaurant onboarding, and analytics, but the tree exposes only their data models—not corresponding runtime modules. Those capabilities and reports therefore cannot be mapped as implemented flows from the available evidence.
Main entry points: AuthService.cs Authentication service · Restaurant_ManagementContext.cs Entity Framework context · UserService.cs Account service · UserRepository.cs User repository
Components 16
API endpoints
- Auth endpoints
Dot-Net-Assignment-Shivam-Rao-UID00817/Controllers/AuthController.cs - User endpoints
Dot-Net-Assignment-Shivam-Rao-UID00817/Controllers/UserController.cs
Identity
- Authentication service
Dot-Net-Assignment-Shivam-Rao-UID00817/Services/AuthService.cs - Account service
Dot-Net-Assignment-Shivam-Rao-UID00817/Services/UserService.cs - Bearer middleware
Dot-Net-Assignment-Shivam-Rao-UID00817/Middlewares/AuthenticationMiddleware.cs - JWT utilities
Dot-Net-Assignment-Shivam-Rao-UID00817/Utils/JWTUtil.cs - Password hashing
Dot-Net-Assignment-Shivam-Rao-UID00817/Helpers/HashingHelper.cs
Persistence
- User repository
Dot-Net-Assignment-Shivam-Rao-UID00817/Repositories/UserRepository.cs - Refresh token repository
Dot-Net-Assignment-Shivam-Rao-UID00817/Repositories/RefreshTokenRepository.cs - Unit of work
Dot-Net-Assignment-Shivam-Rao-UID00817/Repositories/UnitOfWork.cs - Entity Framework context
Dot-Net-Assignment-Shivam-Rao-UID00817/Restaurant_ManagementContext.cs
Restaurant domain
- Restaurant and order entities
Dot-Net-Assignment-Shivam-Rao-UID00817/Models/Restaurants.cs - User entity
Dot-Net-Assignment-Shivam-Rao-UID00817/Models/Users.cs - Refresh token entity
Dot-Net-Assignment-Shivam-Rao-UID00817/Models/Refresh_Tokens.cs
Other components
- API client
- SQL Server
Connections 20
- API client → Auth endpoints: calls auth routes
- API client → User endpoints: calls account routes
- Auth endpoints → Authentication service: delegates auth
- User endpoints → Account service: delegates account actions
- Authentication service → User repository: checks and reads users
- Authentication service → Refresh token repository: manages refresh tokens
- Authentication service → Unit of work: saves changes
- Authentication service → Password hashing: verifies password
- Authentication service → JWT utilities: creates tokens
- Account service → User repository: updates users
- Account service → Authentication service: revokes all sessions
- Account service → Unit of work: saves changes
- Bearer middleware → JWT utilities: validates bearer token
- User repository → Entity Framework context: queries and tracks users
- Refresh token repository → Entity Framework context: queries and tracks tokens
- Unit of work → Entity Framework context: commits changes
- Entity Framework context → SQL Server: persists entities
- Entity Framework context → User entity: maps users
- Entity Framework context → Refresh token entity: maps refresh tokens
- Entity Framework context → Restaurant and order entities: maps domain entities