GET api/buildings/{buildingId}/unittypes
Get unit types by buildilng
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| buildingId |
|
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
List of UnitTypeDetailViewModel
Collection of UnitTypeDetailViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Unit Type Id |
integer |
None. |
| IsUsed |
IsUsed |
boolean |
None. |
| BuildingId |
Building Id |
integer |
Required Range: inclusive between 1 and 2147483647 |
| Description |
Unit Type Number (Short Description) |
string |
Required Matching regular expression pattern: ^[^,'"]*$ Max length: 50 |
| DetailDescription |
Unit Type Detail Description |
string |
Max length: 50 |
| PercentageOfOwnership |
Nullable Percentage of Ownership |
decimal number |
None. |
Response Formats
application/json, text/json
[
{
"id": 1,
"isUsed": true,
"buildingId": 3,
"description": "sample string 4",
"detailDescription": "sample string 5",
"percentageOfOwnership": 1.0
},
{
"id": 1,
"isUsed": true,
"buildingId": 3,
"description": "sample string 4",
"detailDescription": "sample string 5",
"percentageOfOwnership": 1.0
}
]
application/xml, text/xml
<ArrayOfUnitTypeDetailViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">
<UnitTypeDetailViewModel>
<BuildingId xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.UnitType">3</BuildingId>
<Description xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.UnitType">sample string 4</Description>
<DetailDescription xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.UnitType">sample string 5</DetailDescription>
<PercentageOfOwnership xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.UnitType">1</PercentageOfOwnership>
<Id>1</Id>
<IsUsed>true</IsUsed>
</UnitTypeDetailViewModel>
<UnitTypeDetailViewModel>
<BuildingId xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.UnitType">3</BuildingId>
<Description xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.UnitType">sample string 4</Description>
<DetailDescription xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.UnitType">sample string 5</DetailDescription>
<PercentageOfOwnership xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.UnitType">1</PercentageOfOwnership>
<Id>1</Id>
<IsUsed>true</IsUsed>
</UnitTypeDetailViewModel>
</ArrayOfUnitTypeDetailViewModel>