GET api/Department/Get?houseId={houseId}&token={token}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| houseId | integer |
Required |
|
| token | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of MDLDepartment| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| HouseId | integer |
None. |
|
| ShortCut | string |
None. |
|
| Name | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"HouseId": 2,
"ShortCut": "sample string 3",
"Name": "sample string 4"
},
{
"Id": 1,
"HouseId": 2,
"ShortCut": "sample string 3",
"Name": "sample string 4"
}
]
application/xml, text/xml
Sample:
<ArrayOfMDLDepartment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Asanus.BarCon.Middleware.Shared">
<MDLDepartment>
<HouseId>2</HouseId>
<Id>1</Id>
<Name>sample string 4</Name>
<ShortCut>sample string 3</ShortCut>
</MDLDepartment>
<MDLDepartment>
<HouseId>2</HouseId>
<Id>1</Id>
<Name>sample string 4</Name>
<ShortCut>sample string 3</ShortCut>
</MDLDepartment>
</ArrayOfMDLDepartment>