Author: Andrey Shevyakov
Description: A quick guide on how to implement an SnmpManager Grails service with which a client GUI can interact (regardless of the selected GUI framework).
Steps:
JSON-Request Example - Update CRUD:
var data = JSON.stringify({
'serviceAction' : 'updateDomainInstanceBulk',
'serviceDomain' : 'ResponsibilityType',
'serviceEntries' : [
{'id' : 30, 'name' : 'I was updated'},
{'id' : 27, 'name' : 'I was updated too'}
]
});
JSON-Response Example - Update CRUD:
{
"results": [
{
"id": 20,
"ResponsibilityType": {
"id": 20,
"name": "I was updated",
"class": "com.errigal.snmpmanager.knowledge.ResponsibilityType"
},
"success": true
},
{
"id": 22,
"ResponsibilityType": {
"id": 22,
"name": "I was updated too",
"class": "com.errigal.snmpmanager.knowledge.ResponsibilityType"
},
"success": true
}
],
"success": true
}
Diagrams: