GET api/UserManagement/GetAllDepartments

Get all departments of organization.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

List of departments

ResponseOfListOfDepartment
NameDescriptionTypeAdditional information
StatusCode

StatusCode

None.

Message

string

None.

Data

Collection of Department

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1000,
  "Message": "sample string 1",
  "Data": [
    {
      "DepartmentId": 1,
      "Name": "sample string 3"
    },
    {
      "DepartmentId": 1,
      "Name": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<ResponseOfArrayOfDepartmentkvwhp91_P xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto.User">
    <d2p1:Department>
      <d2p1:DepartmentId>1</d2p1:DepartmentId>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:OrganizationId>2</d2p1:OrganizationId>
    </d2p1:Department>
    <d2p1:Department>
      <d2p1:DepartmentId>1</d2p1:DepartmentId>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:OrganizationId>2</d2p1:OrganizationId>
    </d2p1:Department>
  </Data>
  <Message>sample string 1</Message>
  <Result />
  <StatusCode>Success</StatusCode>
</ResponseOfArrayOfDepartmentkvwhp91_P>