POST api/dading/dailySummary

Get employee's daily dading summary for a period of time

Request Information

URI Parameters

None.

Body Parameters

GetDadingSummaryBinder
NameDescriptionTypeAdditional information
ProjectBaseId

integer

None.

PersonIds

Collection of integer

None.

FromDate

date

None.

ToDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectBaseId": 1,
  "PersonIds": [
    1,
    2
  ],
  "FromDate": "2024-12-21 15:28:35",
  "ToDate": "2024-12-21 15:28:35"
}

application/xml, text/xml

Sample:
<GetDadingSummaryBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <FromDate>2024-12-21T19:28:35.022345-08:00</FromDate>
  <PersonIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </PersonIds>
  <ProjectBaseId>1</ProjectBaseId>
  <ToDate>2024-12-21T19:28:35.022345-08:00</ToDate>
</GetDadingSummaryBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Get employee's daily dading summary for a period of time

API_Data_IEnumerableOfEmployeeDailyDadingSummary
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

Collection of EmployeeDailyDadingSummary

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": [
    {
      "PersonId": 1,
      "Summary": {
        "TotalCount": 1,
        "TotalDuration": "2m",
        "TotalMinutes": 2
      },
      "Days": [
        {
          "Day": "2024-12-21 19:28:35",
          "Summary": {
            "TotalCount": 1,
            "TotalDuration": "2m",
            "TotalMinutes": 2
          }
        }
      ]
    },
    {
      "PersonId": 1,
      "Summary": {
        "TotalCount": 1,
        "TotalDuration": "2m",
        "TotalMinutes": 2
      },
      "Days": [
        {
          "Day": "2024-12-21 19:28:35",
          "Summary": {
            "TotalCount": 1,
            "TotalDuration": "2m",
            "TotalMinutes": 2
          }
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<API_Data_ArrayOfEmployeeDailyDadingSummary 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:EmployeeDailyDadingSummary>
      <d2p1:DataOfDays xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfdateTimeDailyDadingSummaryhiTVkWLH>
          <d4p1:Key>2024-12-21T19:28:35.022345-08:00</d4p1:Key>
          <d4p1:Value>
            <d2p1:Day>2024-12-21T19:28:35.022345-08:00</d2p1:Day>
            <d2p1:Summary>
              <d2p1:TotalCount>1</d2p1:TotalCount>
              <d2p1:TotalMinutes>2</d2p1:TotalMinutes>
            </d2p1:Summary>
          </d4p1:Value>
        </d4p1:KeyValueOfdateTimeDailyDadingSummaryhiTVkWLH>
      </d2p1:DataOfDays>
      <d2p1:Days>
        <d2p1:DailyDadingSummary>
          <d2p1:Day>2024-12-21T19:28:35.022345-08:00</d2p1:Day>
          <d2p1:Summary>
            <d2p1:TotalCount>1</d2p1:TotalCount>
            <d2p1:TotalMinutes>2</d2p1:TotalMinutes>
          </d2p1:Summary>
        </d2p1:DailyDadingSummary>
      </d2p1:Days>
      <d2p1:PersonId>1</d2p1:PersonId>
    </d2p1:EmployeeDailyDadingSummary>
    <d2p1:EmployeeDailyDadingSummary>
      <d2p1:DataOfDays xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfdateTimeDailyDadingSummaryhiTVkWLH>
          <d4p1:Key>2024-12-21T19:28:35.022345-08:00</d4p1:Key>
          <d4p1:Value>
            <d2p1:Day>2024-12-21T19:28:35.022345-08:00</d2p1:Day>
            <d2p1:Summary>
              <d2p1:TotalCount>1</d2p1:TotalCount>
              <d2p1:TotalMinutes>2</d2p1:TotalMinutes>
            </d2p1:Summary>
          </d4p1:Value>
        </d4p1:KeyValueOfdateTimeDailyDadingSummaryhiTVkWLH>
      </d2p1:DataOfDays>
      <d2p1:Days>
        <d2p1:DailyDadingSummary>
          <d2p1:Day>2024-12-21T19:28:35.022345-08:00</d2p1:Day>
          <d2p1:Summary>
            <d2p1:TotalCount>1</d2p1:TotalCount>
            <d2p1:TotalMinutes>2</d2p1:TotalMinutes>
          </d2p1:Summary>
        </d2p1:DailyDadingSummary>
      </d2p1:Days>
      <d2p1:PersonId>1</d2p1:PersonId>
    </d2p1:EmployeeDailyDadingSummary>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_ArrayOfEmployeeDailyDadingSummary>