GET api/v3/Shifts/GetShifts

Get's all the shifts in a department

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

List of ShiftResult objects.

Collection of ShiftResult
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Code

string

None.

Color

string

None.

SType

integer

None.

AType

integer

None.

InShift

boolean

None.

PCount

integer

None.

GCount

integer

None.

NextDay

string

None.

NextDayId

integer

None.

Response Formats

application/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "Code": "sample string 3",
    "Color": "sample string 4",
    "SType": 5,
    "AType": 6,
    "InShift": true,
    "PCount": 8,
    "GCount": 9,
    "NextDay": "sample string 10",
    "NextDayId": 11
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Code": "sample string 3",
    "Color": "sample string 4",
    "SType": 5,
    "AType": 6,
    "InShift": true,
    "PCount": 8,
    "GCount": 9,
    "NextDay": "sample string 10",
    "NextDayId": 11
  }
]

application/xml, text/xml

Sample:
<ArrayOfShiftResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Resgrid.Web.Services.Controllers.Version3.Models.Shifts">
  <ShiftResult>
    <AType>6</AType>
    <Code>sample string 3</Code>
    <Color>sample string 4</Color>
    <GCount>9</GCount>
    <Id>1</Id>
    <InShift>true</InShift>
    <Name>sample string 2</Name>
    <NextDay>sample string 10</NextDay>
    <NextDayId>11</NextDayId>
    <PCount>8</PCount>
    <SType>5</SType>
  </ShiftResult>
  <ShiftResult>
    <AType>6</AType>
    <Code>sample string 3</Code>
    <Color>sample string 4</Color>
    <GCount>9</GCount>
    <Id>1</Id>
    <InShift>true</InShift>
    <Name>sample string 2</Name>
    <NextDay>sample string 10</NextDay>
    <NextDayId>11</NextDayId>
    <PCount>8</PCount>
    <SType>5</SType>
  </ShiftResult>
</ArrayOfShiftResult>