GET Api/Department/GetAllDepartments

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Department
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2"
  },
  {
    "Id": 1,
    "Name": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDepartment xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Department>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Department>
  <Department>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Department>
</ArrayOfDepartment>