☁️
Microsoft Azure DevOps Services
Azure DevOps › DevHubProjects › HR & Payroll Gateway
👋
Welcome to Azure DevOps Operations Gateway!
Azure DevOps Organization: https://devhubserver.devhub.in/DevhubProjects • Active Dynamic Gateway: https://payroll.aithtec.com
Gateway Online • Anonymous Access Enabled (No 401)

Azure DevOps HR & Payroll Management API

Welcome to the central backend services gateway. Engineered with ASP.NET Core 8.0, Entity Framework Core, SQL Server, and Azure DevOps RBAC token exchange. Powering Leave Management, Approvals, Attendance Tracking, Payroll Runs, and Daily Reports with 7:00 PM EOD reminder status.

System Gateway Status
● Online (200 OK)
Framework Engine
.NET 8.0 (v1.0.0.0)
Database Provider
Microsoft.EntityFrameworkCore.SqlServer
Total API Modules
7 Production Modules
Gateway Server Time
2026-10-23 17:38:44 UTC
Azure DevOps Integration Enterprise Payroll & Compensation Engine

Synchronized with Azure DevOps User IDs, Project Memberships, and Attendance Clock-In tracking.

🔐 Zero PAT Exposure

Azure DevOps Personal Access Tokens are exchanged in memory over TLS for signed JWT tokens with mapped PayrollManager and Employee roles.

⏱️ Attendance Hours Linkage

Payroll runs compute net hours worked minus breaks directly from biometric and clock-in sessions recorded in the attendance module.

📊 Progressive Tax Rules & Payslips

Automated salary component breakdown (Basic, HRA, Medical, PF, Tax Withholding) with tamper-proof payslip generation for employees.

📮 Postman Collection Ready (All 7 Suites Updated)
Download Collection
// Postman Execution & Troubleshooting Guide:
1. Import HR Management API.postman_collection.json and HR_Management_Environment.postman_environment.json into Postman.
2. Dynamic Port Discovery: Active at https://payroll.aithtec.com (Environment download below auto-injects this URL).
3. Content-Type: Set to application/json (or text/plain with JSON body, both are accepted).
4. Azure DevOps TFS: Supports https://devhubserver.devhub.in/DevhubProjects with self-signed SSL certificate bypass and auto-fallback.
5. Run POST /api/auth/ado-login with your PAT to auto-populate {{authToken}} across all 37 requests.
6. Run Folder 7: Daily Reports to submit daily tasks and verify the 7:00 PM EOD reminder.
✨ Engineering Blueprint
🤖 AI Prompt Engineering & API Implementation Guidelines

Standardized architecture rules, prompt recipes, and live generator for AI assistants (GitHub Copilot, Claude, Gemini, ChatGPT, Cursor).

1 Uniform Envelope Pattern
Every API endpoint MUST return ApiResponse<T> with properties: isSuccess (bool), statusCode (int), message (string), result (object), and totalCount (int). Never return bare domain entities.
2 Dual Route Mapping (No 404s)
Always declare kebab-case and token routing: [Route("api/feature-name")] and [Route("api/[controller]")]. This eliminates 404 Not Found errors between frontend clients and Postman collections.
3 Azure DevOps RBAC Enforcement
Apply granular role authorization: [Authorize(Roles = "HRManager,Administrator")] for approvals/payroll; [Authorize] for employee self-service. Extract user identity using ICurrentUserService.UserId.
4 Strict Business Rules & Negative Tests
Enforce strict domain boundaries (e.g., Module 7 Daily Reports reject back-dating/future-dating with HTTP 400). Always provide negative assertion test items in Postman checking error response contracts.
5 Automated Dynamic Port Discovery
Do NOT hardcode port 5000 or 5001 in Kestrel configurations. Use ConfigureDynamicPortBinding(builder) in Program.cs so Kestrel auto-detects free ports on conflict. Active gateway: https://payroll.aithtec.com.
6 Idempotent SQL DDL & Seeding
Whenever adding an Entity, add corresponding DDL in InitialScript.sql with IF NOT EXISTS (SELECT * FROM sys.tables...) and ensure DbInitializer.cs auto-provisions tables on startup.
Production API Modules Overview
All endpoints enforce uniform response envelopes, role authorization, and comprehensive validation.
Module 1
Authentication & ADO Identity
Exchanges Azure DevOps PATs for JWT Bearer tokens with mapped security roles.
POST /api/auth/ado-login
GET /api/auth/me
Module 2
Leave Requests Module
Submit leaves, calculate annual balances (Vacation, Sick, Personal), and cancellations.
POST /api/leaves
GET /api/leaves/balance
GET /api/leaves
Module 3
Leave Approvals (Strict RBAC)
Approval workflow for Managers and HR with audit logging and balance restoration on rejection.
GET /api/approvals/pending
POST /api/approvals/{id}/action
Module 4
Admin Broadcast Announcements
Organization-wide announcements targeted by Role or Department with read receipt receipts.
GET /api/broadcasts/active
POST /api/broadcasts
Module 5
Attendance & Biometrics
Daily clock-in/out, multi-session break recording, real-time status tracking, and regularization.
POST /api/attendance/clock-in
POST /api/attendance/break
GET /api/attendance/session
POST /api/attendance/clock-out
Module 6
Payroll Configuration & Processing
Salary structures, tax rules, financial period runs, and employee payslips.
GET /api/payroll/components
POST /api/payroll/employee
POST /api/payroll/periods/{id}/calculate
GET /api/payroll/periods/{id}/payslip
✓ Copied to clipboard!