| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "definitions": { | |
| "filter": { | |
| "oneOf": [ | |
| { | |
| "title": "dataValue", | |
| "type": "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "dataValue": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "dataValue" | |
| ] | |
| }, | |
| { | |
| "title": "filterRequest", | |
| "type": "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "request": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "source": { | |
| "type": "string" | |
| }, | |
| "ptcname": { | |
| "type": "string" | |
| }, | |
| "element": { | |
| "type": "string" | |
| }, | |
| "params": { | |
| "$ref": "#/definitions/filterParams" | |
| }, | |
| "remapTo": { | |
| "$ref": "#/definitions/filter" | |
| } | |
| }, | |
| "required": [ | |
| "source", | |
| "element" | |
| ] | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| "filterParams": { | |
| "type": "array", | |
| "items": { | |
| "title": "filterParam", | |
| "type": "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "paramName": { | |
| "type": "string" | |
| }, | |
| "paramValue": { | |
| "$ref": "#/definitions/filter" | |
| } | |
| }, | |
| "required": [ | |
| "paramName", | |
| "paramValue" | |
| ] | |
| } | |
| }, | |
| "params": { | |
| "type": "array", | |
| "items": { | |
| "title": "param", | |
| "type" : "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "paramName": { | |
| "type": "string" | |
| }, | |
| "paramValue": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "paramName", | |
| "paramValue" | |
| ] | |
| } | |
| }, | |
| "getDataRequest": { | |
| "title": "getDataRequest", | |
| "type": "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "getData": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "source": { | |
| "type": "string" | |
| }, | |
| "ptcname": { | |
| "type": "string" | |
| }, | |
| "clientSideCache": { | |
| "type": "boolean" | |
| }, | |
| "element": { | |
| "type": "string" | |
| }, | |
| "params": { | |
| "$ref": "#/definitions/params" | |
| }, | |
| "cookie": { | |
| "type": "string" | |
| }, | |
| "children": { | |
| "$ref": "#/definitions/requests" | |
| }, | |
| "filter": { | |
| "$ref": "#/definitions/filter" | |
| }, | |
| "rangeFilter": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "offset": { | |
| "type": "integer", | |
| "minimum": 0 | |
| }, | |
| "count": { | |
| "type": "integer", | |
| "minimum": 0 | |
| } | |
| } | |
| }, | |
| "selection": { | |
| "type": "array", | |
| "items": { | |
| "title": "selection", | |
| "type": "integer" | |
| } | |
| }, | |
| "selectionValues": { | |
| "type": "array", | |
| "items": { | |
| "title": "selectionValue", | |
| "type": "string" | |
| } | |
| }, | |
| "writableInfo": { | |
| "type": "boolean" | |
| }, | |
| "timeline": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "period": { | |
| "type": "number", | |
| "minimum": 0 | |
| }, | |
| "maxpoints": { | |
| "type": "integer", | |
| "minimum": 0 | |
| }, | |
| "since": { | |
| "type": "integer", | |
| "minimum": 0 | |
| } | |
| } | |
| } | |
| }, | |
| "required": [ | |
| "source", | |
| "element" | |
| ] | |
| } | |
| }, | |
| "required": [ | |
| "getData" | |
| ] | |
| }, | |
| "setDataRequest": { | |
| "title": "setDataRequest", | |
| "type": "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "setData": { | |
| "type": "object", | |
| "properties": { | |
| "source": { | |
| "type": "string" | |
| }, | |
| "ptcname": { | |
| "type": "string" | |
| }, | |
| "clientSideCache": { | |
| "type": "boolean" | |
| }, | |
| "element": { | |
| "type": "string" | |
| }, | |
| "content": { | |
| "type": "string" | |
| }, | |
| "tp": { | |
| "type": "integer" | |
| }, | |
| "indxsInList": { | |
| "type": "array", | |
| "items": { | |
| "title": "index", | |
| "type": "integer" | |
| } | |
| }, | |
| "params": { | |
| "$ref": "#/definitions/params" | |
| } | |
| }, | |
| "required": [ | |
| "source", | |
| "element", | |
| "content", | |
| "tp" | |
| ] | |
| } | |
| }, | |
| "required": [ | |
| "setData" | |
| ] | |
| }, | |
| "requests": { | |
| "type": "array", | |
| "items": { | |
| "title": "request", | |
| "oneOf": [ | |
| { | |
| "$ref": "#/definitions/getDataRequest" | |
| }, | |
| { | |
| "$ref": "#/definitions/setDataRequest" | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| "title": "DsRestAPI Request", | |
| "type": "object", | |
| "additionalProperties": true, | |
| "properties": { | |
| "requests": { | |
| "$ref": "#/definitions/requests" | |
| } | |
| } | |
| } |