POST api/employee/timeSpent
Get employee's time spent of a specified date
Request Information
URI Parameters
None.
Body Parameters
GetTimeSpentBinderName | Description | Type | Additional information |
---|---|---|---|
Day | date |
None. |
|
PersonIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Day": "2024-12-21 15:28:44", "PersonIds": [ 1, 2 ] }
application/xml, text/xml
Sample:
<GetTimeSpentBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <Day>2024-12-21T19:28:44.1945972-08:00</Day> <PersonIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </PersonIds> </GetTimeSpentBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Get employee's time spent of a specified date
API_Data_IEnumerableOfEmployeeTimeSpentName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | Collection of EmployeeTimeSpent |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": [ { "PersonId": 1, "TimeSpent": "0.0h" }, { "PersonId": 1, "TimeSpent": "0.0h" } ] }
application/xml, text/xml
Sample:
<API_Data_ArrayOfEmployeeTimeSpent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities"> <d2p1:EmployeeTimeSpent> <d2p1:PersonId>1</d2p1:PersonId> <d2p1:TimeSpentInt>2</d2p1:TimeSpentInt> </d2p1:EmployeeTimeSpent> <d2p1:EmployeeTimeSpent> <d2p1:PersonId>1</d2p1:PersonId> <d2p1:TimeSpentInt>2</d2p1:TimeSpentInt> </d2p1:EmployeeTimeSpent> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_ArrayOfEmployeeTimeSpent>