GET api/Timesheet/EmployeeAttendanceDashboard?ApiToken={ApiToken}&EmployeeID={EmployeeID}&StartDate={StartDate}&EndDate={EndDate}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
ApiToken | string |
None. |
|
EmployeeID | integer |
None. |
|
StartDate | date |
None. |
|
EndDate | date |
None. |
Body Parameters
None.
Response Information
Resource Description
AttndanceDashboardResponseDataModelName | Description | Type | Additional information |
---|---|---|---|
_objattendance | Collection of AttndanceDashboardDataModel |
None. |
|
ReturnID | integer |
Required |
|
Message | string |
Required |
|
Successful | boolean |
Required |
|
Code | integer |
None. |
|
TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{ "_objattendance": [ { "employeeID": 1, "employeeName": "sample string 1", "employeeCode": "sample string 2", "employeeEmailID": "sample string 3", "employeePhoneCode": "sample string 4", "employeePhoneNo": "sample string 5", "employeeRoleName": "sample string 6", "employeeRoleDesc": "sample string 7", "totalPresent": 8, "totalLeave": 9, "totalWeeklyOff": 10, "totalAbsent": 11, "leaveStatus": [ { "employeeID": 1, "leaveTypeId": 1, "leaveTypeName": "sample string 1", "allowedLeave": 2, "consumedLeave": 3, "availableLeave": 4 }, { "employeeID": 1, "leaveTypeId": 1, "leaveTypeName": "sample string 1", "allowedLeave": 2, "consumedLeave": 3, "availableLeave": 4 } ] }, { "employeeID": 1, "employeeName": "sample string 1", "employeeCode": "sample string 2", "employeeEmailID": "sample string 3", "employeePhoneCode": "sample string 4", "employeePhoneNo": "sample string 5", "employeeRoleName": "sample string 6", "employeeRoleDesc": "sample string 7", "totalPresent": 8, "totalLeave": 9, "totalWeeklyOff": 10, "totalAbsent": 11, "leaveStatus": [ { "employeeID": 1, "leaveTypeId": 1, "leaveTypeName": "sample string 1", "allowedLeave": 2, "consumedLeave": 3, "availableLeave": 4 }, { "employeeID": 1, "leaveTypeId": 1, "leaveTypeName": "sample string 1", "allowedLeave": 2, "consumedLeave": 3, "availableLeave": 4 } ] } ], "returnID": 1, "message": "sample string 2", "successful": true, "code": 4, "totalRecord": 5 }
application/xml, text/xml
Sample:
<AttndanceDashboardResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel"> <Code xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">4</Code> <Message xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">sample string 2</Message> <ReturnID xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">1</ReturnID> <Successful xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">true</Successful> <TotalRecord xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">5</TotalRecord> <_objattendance> <AttndanceDashboardDataModel> <EmployeeCode>sample string 2</EmployeeCode> <EmployeeEmailID>sample string 3</EmployeeEmailID> <EmployeeID>1</EmployeeID> <EmployeeName>sample string 1</EmployeeName> <EmployeePhoneCode>sample string 4</EmployeePhoneCode> <EmployeePhoneNo>sample string 5</EmployeePhoneNo> <EmployeeRoleDesc>sample string 7</EmployeeRoleDesc> <EmployeeRoleName>sample string 6</EmployeeRoleName> <LeaveStatus> <LeaveStatusDM> <AllowedLeave>2</AllowedLeave> <AvailableLeave>4</AvailableLeave> <ConsumedLeave>3</ConsumedLeave> <EmployeeID>1</EmployeeID> <LeaveTypeId>1</LeaveTypeId> <LeaveTypeName>sample string 1</LeaveTypeName> </LeaveStatusDM> <LeaveStatusDM> <AllowedLeave>2</AllowedLeave> <AvailableLeave>4</AvailableLeave> <ConsumedLeave>3</ConsumedLeave> <EmployeeID>1</EmployeeID> <LeaveTypeId>1</LeaveTypeId> <LeaveTypeName>sample string 1</LeaveTypeName> </LeaveStatusDM> </LeaveStatus> <TotalAbsent>11</TotalAbsent> <TotalLeave>9</TotalLeave> <TotalPresent>8</TotalPresent> <TotalWeeklyOff>10</TotalWeeklyOff> </AttndanceDashboardDataModel> <AttndanceDashboardDataModel> <EmployeeCode>sample string 2</EmployeeCode> <EmployeeEmailID>sample string 3</EmployeeEmailID> <EmployeeID>1</EmployeeID> <EmployeeName>sample string 1</EmployeeName> <EmployeePhoneCode>sample string 4</EmployeePhoneCode> <EmployeePhoneNo>sample string 5</EmployeePhoneNo> <EmployeeRoleDesc>sample string 7</EmployeeRoleDesc> <EmployeeRoleName>sample string 6</EmployeeRoleName> <LeaveStatus> <LeaveStatusDM> <AllowedLeave>2</AllowedLeave> <AvailableLeave>4</AvailableLeave> <ConsumedLeave>3</ConsumedLeave> <EmployeeID>1</EmployeeID> <LeaveTypeId>1</LeaveTypeId> <LeaveTypeName>sample string 1</LeaveTypeName> </LeaveStatusDM> <LeaveStatusDM> <AllowedLeave>2</AllowedLeave> <AvailableLeave>4</AvailableLeave> <ConsumedLeave>3</ConsumedLeave> <EmployeeID>1</EmployeeID> <LeaveTypeId>1</LeaveTypeId> <LeaveTypeName>sample string 1</LeaveTypeName> </LeaveStatusDM> </LeaveStatus> <TotalAbsent>11</TotalAbsent> <TotalLeave>9</TotalLeave> <TotalPresent>8</TotalPresent> <TotalWeeklyOff>10</TotalWeeklyOff> </AttndanceDashboardDataModel> </_objattendance> </AttndanceDashboardResponseDataModel>
multipart/form-data
Sample:
<AttndanceDashboardResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel"><Code xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">4</Code><Message xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">sample string 2</Message><ReturnID xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">1</ReturnID><Successful xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">true</Successful><TotalRecord xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">5</TotalRecord><_objattendance><AttndanceDashboardDataModel><EmployeeCode>sample string 2</EmployeeCode><EmployeeEmailID>sample string 3</EmployeeEmailID><EmployeeID>1</EmployeeID><EmployeeName>sample string 1</EmployeeName><EmployeePhoneCode>sample string 4</EmployeePhoneCode><EmployeePhoneNo>sample string 5</EmployeePhoneNo><EmployeeRoleDesc>sample string 7</EmployeeRoleDesc><EmployeeRoleName>sample string 6</EmployeeRoleName><LeaveStatus><LeaveStatusDM><AllowedLeave>2</AllowedLeave><AvailableLeave>4</AvailableLeave><ConsumedLeave>3</ConsumedLeave><EmployeeID>1</EmployeeID><LeaveTypeId>1</LeaveTypeId><LeaveTypeName>sample string 1</LeaveTypeName></LeaveStatusDM><LeaveStatusDM><AllowedLeave>2</AllowedLeave><AvailableLeave>4</AvailableLeave><ConsumedLeave>3</ConsumedLeave><EmployeeID>1</EmployeeID><LeaveTypeId>1</LeaveTypeId><LeaveTypeName>sample string 1</LeaveTypeName></LeaveStatusDM></LeaveStatus><TotalAbsent>11</TotalAbsent><TotalLeave>9</TotalLeave><TotalPresent>8</TotalPresent><TotalWeeklyOff>10</TotalWeeklyOff></AttndanceDashboardDataModel><AttndanceDashboardDataModel><EmployeeCode>sample string 2</EmployeeCode><EmployeeEmailID>sample string 3</EmployeeEmailID><EmployeeID>1</EmployeeID><EmployeeName>sample string 1</EmployeeName><EmployeePhoneCode>sample string 4</EmployeePhoneCode><EmployeePhoneNo>sample string 5</EmployeePhoneNo><EmployeeRoleDesc>sample string 7</EmployeeRoleDesc><EmployeeRoleName>sample string 6</EmployeeRoleName><LeaveStatus><LeaveStatusDM><AllowedLeave>2</AllowedLeave><AvailableLeave>4</AvailableLeave><ConsumedLeave>3</ConsumedLeave><EmployeeID>1</EmployeeID><LeaveTypeId>1</LeaveTypeId><LeaveTypeName>sample string 1</LeaveTypeName></LeaveStatusDM><LeaveStatusDM><AllowedLeave>2</AllowedLeave><AvailableLeave>4</AvailableLeave><ConsumedLeave>3</ConsumedLeave><EmployeeID>1</EmployeeID><LeaveTypeId>1</LeaveTypeId><LeaveTypeName>sample string 1</LeaveTypeName></LeaveStatusDM></LeaveStatus><TotalAbsent>11</TotalAbsent><TotalLeave>9</TotalLeave><TotalPresent>8</TotalPresent><TotalWeeklyOff>10</TotalWeeklyOff></AttndanceDashboardDataModel></_objattendance></AttndanceDashboardResponseDataModel>