Next4Me
 All Classes Files Functions Variables
Asset
Asset.addEditAsset
Asset nou:
REQ:
{
"method": "addEditAsset",
"entity": {
"IdAsset": "0",
"IdTplAsset": "9595",
"Name": "Un nou asset"
}
}
RESP:
{
"resultId": 0,
"resultCode": "16"
}
Edit Asset:
REQ:
{
"method": "addEditAsset",
"entity": {
"IdAsset": "16",
"IdTplAsset": "9595",
"Name": "Un nou Asset Editat"
}
}
RESP:
{
"resultId": 0,
"resultCode": "16"
}
--------------------------------------------------------------------------------------------------------------
Asset.deleteAsset
Stergere Asset:
REQ:
{
"method": "deleteAsset",
"entity": {
"IdAsset": "16"
}
}
RESP:
{
"resultId": 0,
"resultCode": "Date Sterse"
}
--------------------------------------------------------------------------------------------------------------
Asset.getAsset
Listare informatii Asset:
REQ:
{
"method": "getAsset",
"entity": {
"IdAsset": "16",
"pageNo": "1",
"pageSize": "10",
"orderColumn": "IdAsset",
"orderType": "DESC"
}
}
RESP:
{
"resultId": 0,
"resultCode": {
"pageNo": "1",
"pageSize": "10",
"pageCount": 1,
"orderColumn": "IdAsset",
"orderType": "DESC",
"entity": [
{
"IdAsset": "16",
"IdTplAsset": "9595",
"Name": "Un nou Asset Editat"
}
]
}
}
--------------------------------------------------------------------------------------------------------------
Asset.getAssetCount
Listare informatii Asset:
REQ:
{
"method": "getAssetCount",
"entity": {
}
}
RESP:
{
"resultId": 0,
"resultCode": {
"NoOfAsset": "2"
}
}
--------------------------------------------------------------------------------------------------------------
Code formatted with the tool available at http://jsonviewer.stack.hu/