GET Api/TypeOfAbsences/GetForParent/{organizationalUnitId}/{currentPage}/{itemsPerPage}
Pobiera listę wszystkich obiektów TypeOfAbsence
Request Information
URI Parameters
Name | Description | Type | Additional 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 TypeOfAbsence w bazie danych
Collection of TypeOfAbsenceDtoName | Description | Type | Additional information |
---|---|---|---|
TypeOfAbsenceId | integer |
Required |
|
Name | string |
Required |
|
ExportCode | string |
Required |
|
OrganizationalUnitId | integer |
Required |
|
Excused | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "typeOfAbsenceId": 1, "name": "sample string 2", "exportCode": "sample string 3", "organizationalUnitId": 4, "excused": true }, { "typeOfAbsenceId": 1, "name": "sample string 2", "exportCode": "sample string 3", "organizationalUnitId": 4, "excused": true } ]
multipart/form-data
Sample:
[{"typeOfAbsenceId":1,"name":"sample string 2","exportCode":"sample string 3","organizationalUnitId":4,"excused":true},{"typeOfAbsenceId":1,"name":"sample string 2","exportCode":"sample string 3","organizationalUnitId":4,"excused":true}]
application/xml, text/xml
Sample:
<ArrayOfTypeOfAbsenceDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <TypeOfAbsenceDto> <TypeOfAbsenceId>1</TypeOfAbsenceId> <Name>sample string 2</Name> <ExportCode>sample string 3</ExportCode> <OrganizationalUnitId>4</OrganizationalUnitId> <Excused>true</Excused> </TypeOfAbsenceDto> <TypeOfAbsenceDto> <TypeOfAbsenceId>1</TypeOfAbsenceId> <Name>sample string 2</Name> <ExportCode>sample string 3</ExportCode> <OrganizationalUnitId>4</OrganizationalUnitId> <Excused>true</Excused> </TypeOfAbsenceDto> </ArrayOfTypeOfAbsenceDto>