GET Api/Availabilities/GetForParent/{profileId}/{currentPage}/{itemsPerPage}

Pobiera listę wszystkich obiektów Availability

Request Information

URI Parameters

NameDescriptionTypeAdditional information
profileId

identyfikator obiektu nadrzędnego Profile

string

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 Availability w bazie danych

Collection of AvailabilityDto
NameDescriptionTypeAdditional information
AvailabilityId

integer

Required

ProfileId

string

Required

SelectedDate

date

Required

Hours

string

Required

LeaveRequestId

integer

None.

HomeOfficeRequestId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "availabilityId": 1,
    "profileId": "sample string 2",
    "selectedDate": "2024-05-18T04:04:47.9918876+00:00",
    "hours": "sample string 4",
    "leaveRequestId": 1,
    "homeOfficeRequestId": 1
  },
  {
    "availabilityId": 1,
    "profileId": "sample string 2",
    "selectedDate": "2024-05-18T04:04:47.9918876+00:00",
    "hours": "sample string 4",
    "leaveRequestId": 1,
    "homeOfficeRequestId": 1
  }
]

multipart/form-data

Sample:
[{"availabilityId":1,"profileId":"sample string 2","selectedDate":"2024-05-18T04:04:47.9918876+00:00","hours":"sample string 4","leaveRequestId":1,"homeOfficeRequestId":1},{"availabilityId":1,"profileId":"sample string 2","selectedDate":"2024-05-18T04:04:47.9918876+00:00","hours":"sample string 4","leaveRequestId":1,"homeOfficeRequestId":1}]

application/xml, text/xml

Sample:
<ArrayOfAvailabilityDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <AvailabilityDto>
    <AvailabilityId>1</AvailabilityId>
    <ProfileId>sample string 2</ProfileId>
    <SelectedDate />
    <Hours>sample string 4</Hours>
    <LeaveRequestId>1</LeaveRequestId>
    <HomeOfficeRequestId>1</HomeOfficeRequestId>
  </AvailabilityDto>
  <AvailabilityDto>
    <AvailabilityId>1</AvailabilityId>
    <ProfileId>sample string 2</ProfileId>
    <SelectedDate />
    <Hours>sample string 4</Hours>
    <LeaveRequestId>1</LeaveRequestId>
    <HomeOfficeRequestId>1</HomeOfficeRequestId>
  </AvailabilityDto>
</ArrayOfAvailabilityDto>