GET api/v3/Shifts/GetShiftDay?id={id}

Get's all the shifts in a department

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

List of ShiftResult objects.

ShiftDayResult
NameDescriptionTypeAdditional information
ShiftId

integer

None.

ShiftName

string

None.

ShiftDayId

integer

None.

ShitDay

date

None.

Start

date

None.

End

date

None.

SignedUp

boolean

None.

ShiftType

integer

None.

Signups

Collection of ShiftDaySignupResult

None.

Needs

Collection of ShiftDayGroupNeedsResult

None.

Response Formats

application/json

Sample:
{
  "ShiftId": 1,
  "ShiftName": "sample string 2",
  "ShiftDayId": 3,
  "ShitDay": "2017-10-17T21:19:44.4780614+00:00",
  "Start": "2017-10-17T21:19:44.4780614+00:00",
  "End": "2017-10-17T21:19:44.4780614+00:00",
  "SignedUp": true,
  "ShiftType": 8,
  "Signups": [
    {
      "UserId": "sample string 1",
      "Roles": [
        1,
        2
      ]
    },
    {
      "UserId": "sample string 1",
      "Roles": [
        1,
        2
      ]
    }
  ],
  "Needs": [
    {
      "GroupId": 1,
      "GroupNeeds": [
        {
          "RoleId": 1,
          "Needed": 2
        },
        {
          "RoleId": 1,
          "Needed": 2
        }
      ]
    },
    {
      "GroupId": 1,
      "GroupNeeds": [
        {
          "RoleId": 1,
          "Needed": 2
        },
        {
          "RoleId": 1,
          "Needed": 2
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<ShiftDayResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Resgrid.Web.Services.Controllers.Version3.Models.Shifts">
  <End>2017-10-17T21:19:44.4780614+00:00</End>
  <Needs>
    <ShiftDayGroupNeedsResult>
      <GroupId>1</GroupId>
      <GroupNeeds>
        <ShiftDayGroupRoleNeedsResult>
          <Needed>2</Needed>
          <RoleId>1</RoleId>
        </ShiftDayGroupRoleNeedsResult>
        <ShiftDayGroupRoleNeedsResult>
          <Needed>2</Needed>
          <RoleId>1</RoleId>
        </ShiftDayGroupRoleNeedsResult>
      </GroupNeeds>
    </ShiftDayGroupNeedsResult>
    <ShiftDayGroupNeedsResult>
      <GroupId>1</GroupId>
      <GroupNeeds>
        <ShiftDayGroupRoleNeedsResult>
          <Needed>2</Needed>
          <RoleId>1</RoleId>
        </ShiftDayGroupRoleNeedsResult>
        <ShiftDayGroupRoleNeedsResult>
          <Needed>2</Needed>
          <RoleId>1</RoleId>
        </ShiftDayGroupRoleNeedsResult>
      </GroupNeeds>
    </ShiftDayGroupNeedsResult>
  </Needs>
  <ShiftDayId>3</ShiftDayId>
  <ShiftId>1</ShiftId>
  <ShiftName>sample string 2</ShiftName>
  <ShiftType>8</ShiftType>
  <ShitDay>2017-10-17T21:19:44.4780614+00:00</ShitDay>
  <SignedUp>true</SignedUp>
  <Signups>
    <ShiftDaySignupResult>
      <Roles xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </Roles>
      <UserId>sample string 1</UserId>
    </ShiftDaySignupResult>
    <ShiftDaySignupResult>
      <Roles xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </Roles>
      <UserId>sample string 1</UserId>
    </ShiftDaySignupResult>
  </Signups>
  <Start>2017-10-17T21:19:44.4780614+00:00</Start>
</ShiftDayResult>