GET api/Department/{employeeNo}

Get a list of all departments for an employee

Request Information

URI Parameters

NameDescriptionTypeAdditional information
employeeNo

Employee Number

string

Required

Body Parameters

None.

Response Information

Resource Description

All Department Details

Collection of DepartmentDetail
NameDescriptionTypeAdditional information
StartDate

date

Required

EndDate

Must be after StartDate if present

date

None.

Division

string

None.

HomeDepartment

string

None.

Location

string

None.

Department1

string

None.

Department1Percentage

decimal number

None.

Department2

string

None.

Department2Percentage

decimal number

None.

Department3

string

None.

Department3Percentage

decimal number

None.

CostCentre1

string

None.

CostCentre1Percentage

decimal number

None.

CostCentre2

string

None.

CostCentre2Percentage

decimal number

None.

CostCentre3

string

None.

CostCentre3Percentage

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "StartDate": "2024-12-23T06:43:31.0089518+00:00",
    "EndDate": "2024-12-23T06:43:31.0089518+00:00",
    "Division": "sample string 2",
    "HomeDepartment": "sample string 3",
    "Location": "sample string 4",
    "Department1": "sample string 5",
    "Department1Percentage": 1.0,
    "Department2": "sample string 6",
    "Department2Percentage": 1.0,
    "Department3": "sample string 7",
    "Department3Percentage": 1.0,
    "CostCentre1": "sample string 8",
    "CostCentre1Percentage": 1.0,
    "CostCentre2": "sample string 9",
    "CostCentre2Percentage": 1.0,
    "CostCentre3": "sample string 10",
    "CostCentre3Percentage": 1.0
  },
  {
    "StartDate": "2024-12-23T06:43:31.0089518+00:00",
    "EndDate": "2024-12-23T06:43:31.0089518+00:00",
    "Division": "sample string 2",
    "HomeDepartment": "sample string 3",
    "Location": "sample string 4",
    "Department1": "sample string 5",
    "Department1Percentage": 1.0,
    "Department2": "sample string 6",
    "Department2Percentage": 1.0,
    "Department3": "sample string 7",
    "Department3Percentage": 1.0,
    "CostCentre1": "sample string 8",
    "CostCentre1Percentage": 1.0,
    "CostCentre2": "sample string 9",
    "CostCentre2Percentage": 1.0,
    "CostCentre3": "sample string 10",
    "CostCentre3Percentage": 1.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfDepartmentDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebServicesRESTful.Models">
  <DepartmentDetail>
    <CostCentre1>sample string 8</CostCentre1>
    <CostCentre1Percentage>1</CostCentre1Percentage>
    <CostCentre2>sample string 9</CostCentre2>
    <CostCentre2Percentage>1</CostCentre2Percentage>
    <CostCentre3>sample string 10</CostCentre3>
    <CostCentre3Percentage>1</CostCentre3Percentage>
    <Department1>sample string 5</Department1>
    <Department1Percentage>1</Department1Percentage>
    <Department2>sample string 6</Department2>
    <Department2Percentage>1</Department2Percentage>
    <Department3>sample string 7</Department3>
    <Department3Percentage>1</Department3Percentage>
    <Division>sample string 2</Division>
    <EndDate>2024-12-23T06:43:31.0089518+00:00</EndDate>
    <HomeDepartment>sample string 3</HomeDepartment>
    <Location>sample string 4</Location>
    <StartDate>2024-12-23T06:43:31.0089518+00:00</StartDate>
  </DepartmentDetail>
  <DepartmentDetail>
    <CostCentre1>sample string 8</CostCentre1>
    <CostCentre1Percentage>1</CostCentre1Percentage>
    <CostCentre2>sample string 9</CostCentre2>
    <CostCentre2Percentage>1</CostCentre2Percentage>
    <CostCentre3>sample string 10</CostCentre3>
    <CostCentre3Percentage>1</CostCentre3Percentage>
    <Department1>sample string 5</Department1>
    <Department1Percentage>1</Department1Percentage>
    <Department2>sample string 6</Department2>
    <Department2Percentage>1</Department2Percentage>
    <Department3>sample string 7</Department3>
    <Department3Percentage>1</Department3Percentage>
    <Division>sample string 2</Division>
    <EndDate>2024-12-23T06:43:31.0089518+00:00</EndDate>
    <HomeDepartment>sample string 3</HomeDepartment>
    <Location>sample string 4</Location>
    <StartDate>2024-12-23T06:43:31.0089518+00:00</StartDate>
  </DepartmentDetail>
</ArrayOfDepartmentDetail>