GET api/mto/departments

Gets all the departments

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

List of departments

Collection of DepartmentModel
NameDescriptionTypeAdditional information
DepartmentId

integer

None.

DepartmentName

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "DepartmentId": 1,
    "DepartmentName": "sample string 2"
  },
  {
    "DepartmentId": 1,
    "DepartmentName": "sample string 2"
  }
]

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.