GET V3/odata/Department

Gets Department entities

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of QicsUnity.Api.Areas.V3.Models.Department
NameDescriptionTypeAdditional information
DepartmentId

Gets or sets the DepartmentId

integer

Required

64-bit signed integer

Name

Gets or sets name of the Department

string

Required

CompanyId

Gets or sets CompanyId

integer

Required

64-bit signed integer

Response Formats

application/json, text/json

Sample:
[
  {
    "DepartmentId": "1",
    "Name": "sample 2",
    "CompanyId": "3"
  },
  {
    "DepartmentId": "1",
    "Name": "sample 2",
    "CompanyId": "3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDepartment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V3.Models">
  <Department>
    <CompanyId>3</CompanyId>
    <DepartmentId>1</DepartmentId>
    <Name>sample 2</Name>
  </Department>
  <Department>
    <CompanyId>3</CompanyId>
    <DepartmentId>1</DepartmentId>
    <Name>sample 2</Name>
  </Department>
</ArrayOfDepartment>