GET api/Asset/GetAssetCategoryList
Api to get Asset Category Types
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
AssetCategoryListDataResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| AssetCategoryList | Collection of AssetCategoryDataModel |
None. |
|
| ReturnID | integer |
Required |
|
| Message | string |
Required |
|
| Successful | boolean |
Required |
|
| Code | integer |
None. |
|
| TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{
"assetCategoryList": [
{
"categoryID": 1,
"categoryName": "sample string 2"
},
{
"categoryID": 1,
"categoryName": "sample string 2"
}
],
"returnID": 1,
"message": "sample string 2",
"successful": true,
"code": 4,
"totalRecord": 5
}
application/xml, text/xml
Sample:
<AssetCategoryListDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.Asset">
<Code xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">4</Code>
<Message xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">sample string 2</Message>
<ReturnID xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">1</ReturnID>
<Successful xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">true</Successful>
<TotalRecord xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">5</TotalRecord>
<AssetCategoryList>
<AssetCategoryDataModel>
<CategoryID>1</CategoryID>
<CategoryName>sample string 2</CategoryName>
<TotalCount>3</TotalCount>
</AssetCategoryDataModel>
<AssetCategoryDataModel>
<CategoryID>1</CategoryID>
<CategoryName>sample string 2</CategoryName>
<TotalCount>3</TotalCount>
</AssetCategoryDataModel>
</AssetCategoryList>
</AssetCategoryListDataResponse>
multipart/form-data
Sample:
<AssetCategoryListDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.Asset"><Code xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">4</Code><Message xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">sample string 2</Message><ReturnID xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">1</ReturnID><Successful xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">true</Successful><TotalRecord xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">5</TotalRecord><AssetCategoryList><AssetCategoryDataModel><CategoryID>1</CategoryID><CategoryName>sample string 2</CategoryName><TotalCount>3</TotalCount></AssetCategoryDataModel><AssetCategoryDataModel><CategoryID>1</CategoryID><CategoryName>sample string 2</CategoryName><TotalCount>3</TotalCount></AssetCategoryDataModel></AssetCategoryList></AssetCategoryListDataResponse>