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}&param2={param2})

NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional 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:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <idEmployeeWorkDays>1</idEmployeeWorkDays>
  <EmpCode>sample string 2</EmpCode>
  <StartDate>2024-05-19T11:54:51.7229576+10:00</StartDate>
  <EndDate>2024-05-19T11:54:51.7229576+10:00</EndDate>
  <Hours>1.1</Hours>
  <Days>1.1</Days>
</EmployeeWorkDaysView>