Get Asset List
The below API is used to get asset list in Asset Management.
Request: GET
Signature: /api/mobile/GetAssetList?Token={Login_Token}&TypeID={Asset_TypeId}&Search={Search_Keywords}&SkipCount={Skip_Count}
Sample: /api/mobile/GetAssetList?Token=VomYEMiECFFyAQ3==&TypeID=2&Search=KA&SkipCount=0
Response:
{
"Code": 1,
"Info": "",
"RowsAffected": 5,
"Scalar": null,
"Identity": 0,
"RetInfo": [
{
"AssetId": 138,
"AssetName": "KAH 540Z",
"AssetSerial": "KAH540Z"
},
{
"AssetId": 95,
"AssetName": "KAL 896T",
"AssetSerial": "KAL896T"
},
{
"AssetId": 98,
"AssetName": "KAQ 280P",
"AssetSerial": "KAQ280P"
},
{
"AssetId": 97,
"AssetName": "KAS 890B",
"AssetSerial": "KAS890B"
},
{
"AssetId": 96,
"AssetName": "KAV 990G",
"AssetSerial": "KAV990G"
}
]
}
Things to know about this API:
- Token - You can use Login API to get token displayed under Info
- TypeID - You can use Get Asset Types API to get TypeID
- Search - You can search with Asset Name and Asset Serial
- SkipCount - It is an integer which decides the number of rows returned. For example: If you send 0, then it will display 0 to 20 rows. If you send 13, then it will display 13 to 33 rows.
- RowsAffected - Displays the total number of Assets for the TypeID