GET api/EmployeeWorkDays/{id}
Gets the work days for an employee (employeeCode)
Request Information
URI Parameters
(i.e.queryString parameters in the form ?param1={param1}¶m2={param2})
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The employee's employee code. |
string |
Required |
| startDate |
The employee's leave taken start date. |
date |
Required |
| endDate |
The employee's leave taken end date. |
date |
Required |
Body Parameters
None.
Response Information
Resource Description
The work days for the employee in the form of a EmployeeWorkDaysView
EmployeeWorkDaysView| Name | Description | Type | Additional information |
|---|---|---|---|
| EmpCode |
The EmpCode for this employee |
string |
None. |
| Hours |
An accurate indication of the hours taken so that the leave balance can be calculated accurately |
decimal number |
None. |
| Days |
An accurate indication of the days taken so that the leave balance can be calculated accurately |
decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"empCode": "sample string 2",
"hours": 1.1,
"days": 1.1
}
application/xml, text/xml
Sample:
<EmployeeWorkDaysView xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <idEmployeeWorkDays>1</idEmployeeWorkDays> <EmpCode>sample string 2</EmpCode> <StartDate>2025-10-30T01:11:47.4369204+11:00</StartDate> <EndDate>2025-10-30T01:11:47.4369204+11:00</EndDate> <Hours>1.1</Hours> <Days>1.1</Days> </EmployeeWorkDaysView>