To start with there is nothing at http://MANGO-IP:8080/rest/v2/swagger/v2/api-docs
Nor can I find any detailed information.
Specifically I would like to know the required minimum json values for
PUT /rest/v2/data-points (create data-point)
The example in Swagger lists all values, but there is no indication which values are required and which values are set to default when left out. The full PUT request to create a point is (relatively) large 1634 bytes for the request data below.
Also, I am looking for a list of error codes for each API.
{
"xid": "Dummy12345-1",
"name": "Dummy12345-1",
"enabled": true,
"deviceName": "dummy12345",
"readPermission": "",
"setPermission": "",
"pointFolderId": 0,
"purgeOverride": false,
"pointLocator": {
"max": 100,
"min": 0,
"maxChange": 0.1,
"startValue": "50",
"modelType": "PL.VIRTUAL",
"dataType": "NUMERIC",
"settable": true,
"changeType": "BROWNIAN",
"values": []
},
"chartColour": "",
"loggingProperties": {
"cacheSize": 1,
"loggingType": "INTERVAL",
"tolerance": 0,
"discardExtremeValues": false,
"intervalLoggingType": "AVERAGE",
"intervalLoggingPeriod": {
"periods": 1,
"type": "MINUTES"
},
"overrideIntervalLoggingSamples": false
},
"textRenderer": {
"type": "textRendererAnalog",
"format": "0.00",
"suffix": "",
"useUnitAsSuffix": false
},
"chartRenderer": {
"type": "chartRendererImage",
"timePeriod": {
"periods": 1,
"type": "DAYS"
}
},
"rollup": "NONE",
"simplifyType": "NONE",
"simplifyTolerance": "NaN",
"simplifyTarget": 1000,
"templateXid": null,
"dataSourceXid": "dummy12345",
"tags": {},
"plotType": "SPLINE",
"dataSourceTypeName": "VIRTUAL"
}