GET v1/Employees/{id}/EmployeeShifts

Get the employee's shifts

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

ActionResultDTOOfListOfUserShiftDTO
NameDescriptionTypeAdditional information
Result

Collection of UserShiftDTO

None.

CreatedBy

string

None.

EntityID

integer

None.

RowSource

string

None.

PolicyID

integer

None.

IsSuccess

boolean

None.

ErrorCode

string

None.

ErrorMessage

string

None.

InfoMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": [
    {
      "UserShiftID": 1,
      "EmployeeID": 2,
      "Monday": true,
      "Tuesday": true,
      "Wednesday": true,
      "Thursday": true,
      "Friday": true,
      "Saturday": true,
      "Sunday": true,
      "StartTime": "sample string 10",
      "EndTime": "sample string 11",
      "TimeZoneValue": "sample string 12"
    },
    {
      "UserShiftID": 1,
      "EmployeeID": 2,
      "Monday": true,
      "Tuesday": true,
      "Wednesday": true,
      "Thursday": true,
      "Friday": true,
      "Saturday": true,
      "Sunday": true,
      "StartTime": "sample string 10",
      "EndTime": "sample string 11",
      "TimeZoneValue": "sample string 12"
    }
  ],
  "CreatedBy": "sample string 1",
  "EntityID": 2,
  "RowSource": "sample string 3",
  "PolicyID": 4,
  "IsSuccess": true,
  "ErrorCode": "sample string 6",
  "ErrorMessage": "sample string 7",
  "InfoMessage": "sample string 8"
}

application/xml, text/xml

Sample:
<ActionResultOfArrayOfUserShiftDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects">
  <ErrorCode>sample string 6</ErrorCode>
  <ErrorMessage>sample string 7</ErrorMessage>
  <InfoMessage>sample string 8</InfoMessage>
  <IsSuccess>true</IsSuccess>
  <CreatedBy>sample string 1</CreatedBy>
  <EntityID>2</EntityID>
  <PolicyID>4</PolicyID>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Config">
    <d2p1:UserShiftDTO>
      <d2p1:EmployeeID>2</d2p1:EmployeeID>
      <d2p1:EndTime>sample string 11</d2p1:EndTime>
      <d2p1:Friday>true</d2p1:Friday>
      <d2p1:Monday>true</d2p1:Monday>
      <d2p1:Saturday>true</d2p1:Saturday>
      <d2p1:StartTime>sample string 10</d2p1:StartTime>
      <d2p1:Sunday>true</d2p1:Sunday>
      <d2p1:Thursday>true</d2p1:Thursday>
      <d2p1:TimeZoneValue>sample string 12</d2p1:TimeZoneValue>
      <d2p1:Tuesday>true</d2p1:Tuesday>
      <d2p1:UserShiftID>1</d2p1:UserShiftID>
      <d2p1:Wednesday>true</d2p1:Wednesday>
    </d2p1:UserShiftDTO>
    <d2p1:UserShiftDTO>
      <d2p1:EmployeeID>2</d2p1:EmployeeID>
      <d2p1:EndTime>sample string 11</d2p1:EndTime>
      <d2p1:Friday>true</d2p1:Friday>
      <d2p1:Monday>true</d2p1:Monday>
      <d2p1:Saturday>true</d2p1:Saturday>
      <d2p1:StartTime>sample string 10</d2p1:StartTime>
      <d2p1:Sunday>true</d2p1:Sunday>
      <d2p1:Thursday>true</d2p1:Thursday>
      <d2p1:TimeZoneValue>sample string 12</d2p1:TimeZoneValue>
      <d2p1:Tuesday>true</d2p1:Tuesday>
      <d2p1:UserShiftID>1</d2p1:UserShiftID>
      <d2p1:Wednesday>true</d2p1:Wednesday>
    </d2p1:UserShiftDTO>
  </Result>
  <RowSource>sample string 3</RowSource>
</ActionResultOfArrayOfUserShiftDTO>