GET api/UserShift

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Shift
NameDescriptionTypeAdditional information
ShiftId

integer

None.

UserId

string

None.

ShortTitle

string

None.

Title

string

None.

TimeFrom

date

None.

TimeTo

date

None.

BackgroundColor

string

None.

FontColor

string

None.

ReferencedWorkScheduleDays

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "shiftId": 1,
    "userId": "sample string 2",
    "shortTitle": "sample string 3",
    "title": "sample string 4",
    "timeFrom": "2026-04-03T11:03:49.824364+00:00",
    "timeTo": "2026-04-03T11:03:49.824364+00:00",
    "backgroundColor": "sample string 5",
    "fontColor": "sample string 6",
    "referencedWorkScheduleDays": 1
  },
  {
    "shiftId": 1,
    "userId": "sample string 2",
    "shortTitle": "sample string 3",
    "title": "sample string 4",
    "timeFrom": "2026-04-03T11:03:49.824364+00:00",
    "timeTo": "2026-04-03T11:03:49.824364+00:00",
    "backgroundColor": "sample string 5",
    "fontColor": "sample string 6",
    "referencedWorkScheduleDays": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfShift xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyWorkSchedule.Common.Models">
  <Shift>
    <BackgroundColor>sample string 5</BackgroundColor>
    <FontColor>sample string 6</FontColor>
    <ReferencedWorkScheduleDays>1</ReferencedWorkScheduleDays>
    <ShiftId>1</ShiftId>
    <ShortTitle>sample string 3</ShortTitle>
    <TimeFrom>2026-04-03T11:03:49.824364+00:00</TimeFrom>
    <TimeTo>2026-04-03T11:03:49.824364+00:00</TimeTo>
    <Title>sample string 4</Title>
    <UserId>sample string 2</UserId>
  </Shift>
  <Shift>
    <BackgroundColor>sample string 5</BackgroundColor>
    <FontColor>sample string 6</FontColor>
    <ReferencedWorkScheduleDays>1</ReferencedWorkScheduleDays>
    <ShiftId>1</ShiftId>
    <ShortTitle>sample string 3</ShortTitle>
    <TimeFrom>2026-04-03T11:03:49.824364+00:00</TimeFrom>
    <TimeTo>2026-04-03T11:03:49.824364+00:00</TimeTo>
    <Title>sample string 4</Title>
    <UserId>sample string 2</UserId>
  </Shift>
</ArrayOfShift>