GET api/WorkSchedule/{employeeNo}
Get a list of all schedules for an employee
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
employeeNo |
Employee Number |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
All schedule details
Collection of WorkScheduleDetailName | Description | Type | Additional information |
---|---|---|---|
RecordID | integer |
None. |
|
ScheduleName | string |
None. |
|
StartDate |
OPTIONAL - The start date of the work schedule |
date |
Required |
EndDate |
OPTIONAL - The end date of the work schedule |
date |
None. |
OverrideSchedule | boolean |
None. |
|
Hourly | boolean |
None. |
|
MultiWeek | boolean |
None. |
|
WorkScheduleWeeks | Collection of Dictionary of string [key] and decimal number [value] |
None. |
Response Formats
application/json, text/json
Sample:
[ { "RecordID": 1, "ScheduleName": "sample string 2", "StartDate": "2024-12-23T06:12:19.6151934+00:00", "EndDate": "2024-12-23T06:12:19.6151934+00:00", "OverrideSchedule": true, "Hourly": true, "MultiWeek": true, "WorkScheduleWeeks": [ { "sample string 1": 2.0, "sample string 3": 4.0 }, { "sample string 1": 2.0, "sample string 3": 4.0 } ] }, { "RecordID": 1, "ScheduleName": "sample string 2", "StartDate": "2024-12-23T06:12:19.6151934+00:00", "EndDate": "2024-12-23T06:12:19.6151934+00:00", "OverrideSchedule": true, "Hourly": true, "MultiWeek": true, "WorkScheduleWeeks": [ { "sample string 1": 2.0, "sample string 3": 4.0 }, { "sample string 1": 2.0, "sample string 3": 4.0 } ] } ]
application/xml, text/xml
Sample:
<ArrayOfWorkScheduleDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebServicesRESTful.Models"> <WorkScheduleDetail> <EndDate>2024-12-23T06:12:19.6151934+00:00</EndDate> <Hourly>true</Hourly> <MultiWeek>true</MultiWeek> <OverrideSchedule>true</OverrideSchedule> <RecordID>1</RecordID> <ScheduleName>sample string 2</ScheduleName> <StartDate>2024-12-23T06:12:19.6151934+00:00</StartDate> <WorkScheduleWeeks xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:ArrayOfKeyValueOfstringdecimal> <d3p1:KeyValueOfstringdecimal> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Value>2</d3p1:Value> </d3p1:KeyValueOfstringdecimal> <d3p1:KeyValueOfstringdecimal> <d3p1:Key>sample string 3</d3p1:Key> <d3p1:Value>4</d3p1:Value> </d3p1:KeyValueOfstringdecimal> </d3p1:ArrayOfKeyValueOfstringdecimal> <d3p1:ArrayOfKeyValueOfstringdecimal> <d3p1:KeyValueOfstringdecimal> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Value>2</d3p1:Value> </d3p1:KeyValueOfstringdecimal> <d3p1:KeyValueOfstringdecimal> <d3p1:Key>sample string 3</d3p1:Key> <d3p1:Value>4</d3p1:Value> </d3p1:KeyValueOfstringdecimal> </d3p1:ArrayOfKeyValueOfstringdecimal> </WorkScheduleWeeks> </WorkScheduleDetail> <WorkScheduleDetail> <EndDate>2024-12-23T06:12:19.6151934+00:00</EndDate> <Hourly>true</Hourly> <MultiWeek>true</MultiWeek> <OverrideSchedule>true</OverrideSchedule> <RecordID>1</RecordID> <ScheduleName>sample string 2</ScheduleName> <StartDate>2024-12-23T06:12:19.6151934+00:00</StartDate> <WorkScheduleWeeks xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:ArrayOfKeyValueOfstringdecimal> <d3p1:KeyValueOfstringdecimal> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Value>2</d3p1:Value> </d3p1:KeyValueOfstringdecimal> <d3p1:KeyValueOfstringdecimal> <d3p1:Key>sample string 3</d3p1:Key> <d3p1:Value>4</d3p1:Value> </d3p1:KeyValueOfstringdecimal> </d3p1:ArrayOfKeyValueOfstringdecimal> <d3p1:ArrayOfKeyValueOfstringdecimal> <d3p1:KeyValueOfstringdecimal> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Value>2</d3p1:Value> </d3p1:KeyValueOfstringdecimal> <d3p1:KeyValueOfstringdecimal> <d3p1:Key>sample string 3</d3p1:Key> <d3p1:Value>4</d3p1:Value> </d3p1:KeyValueOfstringdecimal> </d3p1:ArrayOfKeyValueOfstringdecimal> </WorkScheduleWeeks> </WorkScheduleDetail> </ArrayOfWorkScheduleDetail>