How jahnavicse/employeeapi works
This is an ASP.NET Core employee-management API with JWT login and role-protected employee administration. A client obtains a token from the login endpoint, then uses the employee endpoints to search, page, retrieve, create, update, or soft-delete employee records. Employee operations pass through a repository to an EF Core context and SQL Server. The graph reflects the supplied source excerpts and SOURCE INDEX; the README is empty, and unsampled migration or configuration details are not inferred.
Main entry points: Program.cs ASP.NET host · EmployeesController.cs Employee endpoints · AuthController.cs Login endpoint · Data.cs EF Core context
Components 13
API surface
- ASP.NET host
Sujay sir Test-Emp_API/Program.cs - Employee endpoints
Sujay sir Test-Emp_API/Controllers/EmployeesController.cs - Request and response DTOs
Sujay sir Test-Emp_API/DTOs/EmployeeDtos.cs
Authentication
- Login endpoint
Sujay sir Test-Emp_API/Controllers/AuthController.cs - JWT validation
Sujay sir Test-Emp_API/Program.cs
Employee domain
- Repository contract
Sujay sir Test-Emp_API/Repository/IEmployeeRepository.cs - Employee repository
Sujay sir Test-Emp_API/Repository/EmployeeRepository.cs - Employee entity
Sujay sir Test-Emp_API/Models/Employee.cs - Department entity
Sujay sir Test-Emp_API/Models/Department.cs
Persistence
- EF Core context
Sujay sir Test-Emp_API/Data/Data.cs - SQL Server
API documentation
- OpenAPI security scheme
Sujay sir Test-Emp_API/OpenApi/BearerSecuritySchemeTransformer.cs
Other components
- API client
Connections 17
- API client → Login endpoint: requests login
Sujay sir Test-Emp_API/Controllers/AuthController.cs - API client → Employee endpoints: calls endpoints
Sujay sir Test-Emp_API/Controllers/EmployeesController.cs - ASP.NET host → Login endpoint: maps controllers
Sujay sir Test-Emp_API/Program.cs - ASP.NET host → Employee endpoints: maps controllers
Sujay sir Test-Emp_API/Program.cs - Login endpoint → Request and response DTOs: uses login DTOs
Sujay sir Test-Emp_API/Controllers/AuthController.cs - Login endpoint → API client: returns JWT
Sujay sir Test-Emp_API/Controllers/AuthController.cs - ASP.NET host → JWT validation: configures validation
Sujay sir Test-Emp_API/Program.cs - Employee endpoints → Repository contract: calls operations
Sujay sir Test-Emp_API/Controllers/EmployeesController.cs - Employee endpoints → Request and response DTOs: accepts and returns
Sujay sir Test-Emp_API/Controllers/EmployeesController.cs - Employee repository → Repository contract: implements
Sujay sir Test-Emp_API/Repository/EmployeeRepository.cs - Employee repository → EF Core context: queries and saves
Sujay sir Test-Emp_API/Repository/EmployeeRepository.cs - Employee repository → Request and response DTOs: maps DTOs
Sujay sir Test-Emp_API/Repository/EmployeeRepository.cs - EF Core context → Employee entity: maps entity
Sujay sir Test-Emp_API/Data/Data.cs - EF Core context → Department entity: maps and seeds
Sujay sir Test-Emp_API/Data/Data.cs - ASP.NET host → EF Core context: registers context
Sujay sir Test-Emp_API/Program.cs - ASP.NET host → SQL Server: configures SQL Server
Sujay sir Test-Emp_API/Program.cs - ASP.NET host → OpenAPI security scheme: registers transformer
Sujay sir Test-Emp_API/Program.cs