GET api/worker/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

WorkerDto
NameDescriptionTypeAdditional information
WorkerID

integer

None.

WorkerTypeID

integer

None.

Name

string

None.

IdentityNumber

string

None.

Address

string

None.

ContactPhone

string

None.

Notes

string

None.

Active

boolean

None.

CreateDate

date

None.

ChangeDate

date

None.

UserID

string

None.

Response Formats

application/json, text/json

Sample:
{
  "WorkerID": 1,
  "WorkerTypeID": 2,
  "Name": "sample string 3",
  "IdentityNumber": "sample string 4",
  "Address": "sample string 5",
  "ContactPhone": "sample string 6",
  "Notes": "sample string 7",
  "Active": true,
  "CreateDate": "2026-06-26T13:48:14.0253399+01:00",
  "ChangeDate": "2026-06-26T13:48:14.0253399+01:00",
  "UserID": "sample string 9"
}

application/xml, text/xml

Sample:
<WorkerDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortalWanza.Services.Core.Models">
  <Active>true</Active>
  <Address>sample string 5</Address>
  <ChangeDate>2026-06-26T13:48:14.0253399+01:00</ChangeDate>
  <ContactPhone>sample string 6</ContactPhone>
  <CreateDate>2026-06-26T13:48:14.0253399+01:00</CreateDate>
  <IdentityNumber>sample string 4</IdentityNumber>
  <Name>sample string 3</Name>
  <Notes>sample string 7</Notes>
  <UserID>sample string 9</UserID>
  <WorkerID>1</WorkerID>
  <WorkerTypeID>2</WorkerTypeID>
</WorkerDto>