GET Api/TypeOfAbsences/{id}

Wyszukuje object TypeOfAbsence po jego identyfikatorze

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

unikalny identyfikator obiektu

integer

Required

Body Parameters

None.

Response Information

Resource Description

obiekt TypeOfAbsence posiadajÄ…cy wybrany identyfikator

TypeOfAbsenceDto
NameDescriptionTypeAdditional 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
}

multipart/form-data

Sample:
{"typeOfAbsenceId":1,"name":"sample string 2","exportCode":"sample string 3","organizationalUnitId":4,"excused":true}

application/xml, text/xml

Sample:
<TypeOfAbsenceDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <TypeOfAbsenceId>1</TypeOfAbsenceId>
  <Name>sample string 2</Name>
  <ExportCode>sample string 3</ExportCode>
  <OrganizationalUnitId>4</OrganizationalUnitId>
  <Excused>true</Excused>
</TypeOfAbsenceDto>