How nihira2020/dotnetcore_api_jwttoken works
CustomerAPI is an ASP.NET Core service for customer, employee, designation, product, and user administration, with JWT authentication, role/menu permissions, and product-image handling. Clients call controller endpoints; controllers query or update the EF Core context, which connects to SQL Server. Product image endpoints also read and write files under wwwroot. The graph reflects sampled controller and startup code; other controller details and configuration values were not inspected.
Main entry points: Learn_DBContext.cs EF Core context · Startup.cs ASP.NET configuration · ProductController.cs Product endpoints · UserController.cs Authentication and access
Components 13
API operations
- Customer endpoints
Controllers/CustomerController.cs - Employee endpoints
Controllers/EmployeeController.cs - Designation endpoints
Controllers/DesignationController.cs
Identity and access
- Authentication and access
Controllers/UserController.cs - User administration
Controllers/UserMasterController.cs - Refresh token generator
RefreshTokenGenerator.cs
Persistence
- EF Core context
Models/Learn_DBContext.cs - SQL Server database
Product media
- Product endpoints
Controllers/ProductController.cs - Product image files
wwwroot/Uploads/Product
Request runtime
- ASP.NET configuration
Startup.cs - Host entry point
Program.cs
Other components
- API client
Connections 19
- API client → Customer endpoints: calls endpoints
- API client → Employee endpoints: calls endpoints
- API client → Designation endpoints: calls endpoints
- API client → Product endpoints: calls endpoints
- API client → Authentication and access: calls endpoints
- API client → User administration: calls endpoints
- Customer endpoints → EF Core context: queries
- Employee endpoints → EF Core context: reads and writes
- Designation endpoints → EF Core context: reads and writes
- Product endpoints → EF Core context: reads and writes
- Authentication and access → EF Core context: reads and writes
- User administration → EF Core context: reads and writes
- Refresh token generator → EF Core context: reads and writes
- EF Core context → SQL Server database: queries and saves
- Product endpoints → Product image files: reads and writes
- ASP.NET configuration → EF Core context: registers
- ASP.NET configuration → Refresh token generator: registers
- ASP.NET configuration → Authentication and access: configures authentication
- Host entry point → ASP.NET configuration: starts host