GET Api/ShiftPlans/GetForParent/{organizationalUnitId}/{currentPage}/{itemsPerPage}

Pobiera listę wszystkich obiektów ShiftPlan

Request Information

URI Parameters

NameDescriptionTypeAdditional information
organizationalUnitId

identyfikator obiektu nadrzędnego OrganizationalUnit

integer

Required

currentPage

numer aktualnej strony

integer

Default value is 0

itemsPerPage

ilość elementów na stronie

integer

Default value is 2147483647

Body Parameters

None.

Response Information

Resource Description

lista wszystkich obiektów ShiftPlan w bazie danych

Collection of ShiftPlanDto
NameDescriptionTypeAdditional information
ShiftPlanId

integer

Required

OrganizationalUnitId

integer

Required

Title

string

Required

Weeks

Collection of WeekPlanDto

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "shiftPlanId": 1,
    "organizationalUnitId": 2,
    "title": "sample string 3",
    "weeks": [
      {
        "weekPlanId": 1,
        "name": "sample string 2",
        "sequence": 3,
        "days": [
          {
            "dayPlanId": 1,
            "weekPlanId": 2,
            "weekDay": 3,
            "hour": 1,
            "minute": 1,
            "duration": 1,
            "breakTime": 1,
            "color": "sample string 4"
          },
          {
            "dayPlanId": 1,
            "weekPlanId": 2,
            "weekDay": 3,
            "hour": 1,
            "minute": 1,
            "duration": 1,
            "breakTime": 1,
            "color": "sample string 4"
          }
        ]
      },
      {
        "weekPlanId": 1,
        "name": "sample string 2",
        "sequence": 3,
        "days": [
          {
            "dayPlanId": 1,
            "weekPlanId": 2,
            "weekDay": 3,
            "hour": 1,
            "minute": 1,
            "duration": 1,
            "breakTime": 1,
            "color": "sample string 4"
          },
          {
            "dayPlanId": 1,
            "weekPlanId": 2,
            "weekDay": 3,
            "hour": 1,
            "minute": 1,
            "duration": 1,
            "breakTime": 1,
            "color": "sample string 4"
          }
        ]
      }
    ]
  },
  {
    "shiftPlanId": 1,
    "organizationalUnitId": 2,
    "title": "sample string 3",
    "weeks": [
      {
        "weekPlanId": 1,
        "name": "sample string 2",
        "sequence": 3,
        "days": [
          {
            "dayPlanId": 1,
            "weekPlanId": 2,
            "weekDay": 3,
            "hour": 1,
            "minute": 1,
            "duration": 1,
            "breakTime": 1,
            "color": "sample string 4"
          },
          {
            "dayPlanId": 1,
            "weekPlanId": 2,
            "weekDay": 3,
            "hour": 1,
            "minute": 1,
            "duration": 1,
            "breakTime": 1,
            "color": "sample string 4"
          }
        ]
      },
      {
        "weekPlanId": 1,
        "name": "sample string 2",
        "sequence": 3,
        "days": [
          {
            "dayPlanId": 1,
            "weekPlanId": 2,
            "weekDay": 3,
            "hour": 1,
            "minute": 1,
            "duration": 1,
            "breakTime": 1,
            "color": "sample string 4"
          },
          {
            "dayPlanId": 1,
            "weekPlanId": 2,
            "weekDay": 3,
            "hour": 1,
            "minute": 1,
            "duration": 1,
            "breakTime": 1,
            "color": "sample string 4"
          }
        ]
      }
    ]
  }
]

multipart/form-data

Sample:
[{"shiftPlanId":1,"organizationalUnitId":2,"title":"sample string 3","weeks":[{"weekPlanId":1,"name":"sample string 2","sequence":3,"days":[{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"},{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"}]},{"weekPlanId":1,"name":"sample string 2","sequence":3,"days":[{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"},{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"}]}]},{"shiftPlanId":1,"organizationalUnitId":2,"title":"sample string 3","weeks":[{"weekPlanId":1,"name":"sample string 2","sequence":3,"days":[{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"},{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"}]},{"weekPlanId":1,"name":"sample string 2","sequence":3,"days":[{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"},{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"}]}]}]

application/xml, text/xml

Sample:
<ArrayOfShiftPlanDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ShiftPlanDto>
    <ShiftPlanId>1</ShiftPlanId>
    <OrganizationalUnitId>2</OrganizationalUnitId>
    <Title>sample string 3</Title>
    <Weeks>
      <WeekPlanDto>
        <WeekPlanId>1</WeekPlanId>
        <Name>sample string 2</Name>
        <Sequence>3</Sequence>
        <Days>
          <DayPlanDto>
            <DayPlanId>1</DayPlanId>
            <WeekPlanId>2</WeekPlanId>
            <WeekDay>3</WeekDay>
            <Hour>1</Hour>
            <Minute>1</Minute>
            <Duration>1</Duration>
            <BreakTime>1</BreakTime>
            <Color>sample string 4</Color>
          </DayPlanDto>
          <DayPlanDto>
            <DayPlanId>1</DayPlanId>
            <WeekPlanId>2</WeekPlanId>
            <WeekDay>3</WeekDay>
            <Hour>1</Hour>
            <Minute>1</Minute>
            <Duration>1</Duration>
            <BreakTime>1</BreakTime>
            <Color>sample string 4</Color>
          </DayPlanDto>
        </Days>
      </WeekPlanDto>
      <WeekPlanDto>
        <WeekPlanId>1</WeekPlanId>
        <Name>sample string 2</Name>
        <Sequence>3</Sequence>
        <Days>
          <DayPlanDto>
            <DayPlanId>1</DayPlanId>
            <WeekPlanId>2</WeekPlanId>
            <WeekDay>3</WeekDay>
            <Hour>1</Hour>
            <Minute>1</Minute>
            <Duration>1</Duration>
            <BreakTime>1</BreakTime>
            <Color>sample string 4</Color>
          </DayPlanDto>
          <DayPlanDto>
            <DayPlanId>1</DayPlanId>
            <WeekPlanId>2</WeekPlanId>
            <WeekDay>3</WeekDay>
            <Hour>1</Hour>
            <Minute>1</Minute>
            <Duration>1</Duration>
            <BreakTime>1</BreakTime>
            <Color>sample string 4</Color>
          </DayPlanDto>
        </Days>
      </WeekPlanDto>
    </Weeks>
  </ShiftPlanDto>
  <ShiftPlanDto>
    <ShiftPlanId>1</ShiftPlanId>
    <OrganizationalUnitId>2</OrganizationalUnitId>
    <Title>sample string 3</Title>
    <Weeks>
      <WeekPlanDto>
        <WeekPlanId>1</WeekPlanId>
        <Name>sample string 2</Name>
        <Sequence>3</Sequence>
        <Days>
          <DayPlanDto>
            <DayPlanId>1</DayPlanId>
            <WeekPlanId>2</WeekPlanId>
            <WeekDay>3</WeekDay>
            <Hour>1</Hour>
            <Minute>1</Minute>
            <Duration>1</Duration>
            <BreakTime>1</BreakTime>
            <Color>sample string 4</Color>
          </DayPlanDto>
          <DayPlanDto>
            <DayPlanId>1</DayPlanId>
            <WeekPlanId>2</WeekPlanId>
            <WeekDay>3</WeekDay>
            <Hour>1</Hour>
            <Minute>1</Minute>
            <Duration>1</Duration>
            <BreakTime>1</BreakTime>
            <Color>sample string 4</Color>
          </DayPlanDto>
        </Days>
      </WeekPlanDto>
      <WeekPlanDto>
        <WeekPlanId>1</WeekPlanId>
        <Name>sample string 2</Name>
        <Sequence>3</Sequence>
        <Days>
          <DayPlanDto>
            <DayPlanId>1</DayPlanId>
            <WeekPlanId>2</WeekPlanId>
            <WeekDay>3</WeekDay>
            <Hour>1</Hour>
            <Minute>1</Minute>
            <Duration>1</Duration>
            <BreakTime>1</BreakTime>
            <Color>sample string 4</Color>
          </DayPlanDto>
          <DayPlanDto>
            <DayPlanId>1</DayPlanId>
            <WeekPlanId>2</WeekPlanId>
            <WeekDay>3</WeekDay>
            <Hour>1</Hour>
            <Minute>1</Minute>
            <Duration>1</Duration>
            <BreakTime>1</BreakTime>
            <Color>sample string 4</Color>
          </DayPlanDto>
        </Days>
      </WeekPlanDto>
    </Weeks>
  </ShiftPlanDto>
</ArrayOfShiftPlanDto>