Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19 rahulsahay19/swagger.json
Last active Sep 24, 2019

Embed
What would you like to do?
swagger.json
{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "Kognifai Galore API"
},
"paths": {
"/api/Attribute": {
"post": {
"tags": [
"Attribute"
],
"summary": "Gets the attribute values by using a list of attribute names and a node selector.\r\nSpecial attribute names:\r\n name: The name of the node.\r\n displayName: The display name of the node.\r\n paths: Will retrieve the full path of the node.",
"description": "Json input should contain node selector and attribute names \r\n{\r\n \"selector\": \"a node selector\",\r\n \"names\": [\"attribute name 1\", \"attribute name 2\"]\r\n}\r\nExample :\r\n{\r\n \"selector\": \"~/\",\r\n \"names\": [\"name\", \"nodeType\", \"paths\"]\r\n}",
"operationId": "GetAttributes",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [],
"parameters": [
{
"name": "json",
"in": "body",
"description": "json with node and attribute names",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/Attribute/values": {
"post": {
"tags": [
"Attribute"
],
"summary": "Gets the attribute values by using attribute name and node selector",
"description": "Json input should contain node selector and attribute name \r\n{\r\n \"selector\": \"a node selector\",\r\n \"name\": \"attribute name\"\r\n}\r\nExample :\r\n\r\n{\r\n \"selector\": \"~/\",\r\n \"name\": \"nodeType\"\r\n}",
"operationId": "GetValues",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [],
"parameters": [
{
"name": "json",
"in": "body",
"description": "json with node and attribute name",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/Attribute/rawvalues": {
"post": {
"tags": [
"Attribute"
],
"summary": "Gets the raw attribute values by using attribute name and node selector",
"description": "Json input should contain node selector and attribute name \r\n{\r\n \"selector\": \"a node selector\",\r\n \"name\": \"attribute name\"\r\n}\r\nExample :\r\n\r\n{\r\n \"selector\": \"~/\",\r\n \"name\": \"nodeType\"\r\n}",
"operationId": "GetRawAttributeValues",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [],
"parameters": [
{
"name": "json",
"in": "body",
"description": "json with node and attribute name",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/Configuration/execute": {
"put": {
"tags": [
"Configuration"
],
"summary": "Executes a command object.",
"description": "The following is an example of \"CreateNodeCommand\".\r\n [\r\n {\r\n \"contextSelector\": \"#16\",\r\n \"tag\": \"JobQueueCount\",\r\n \"attributes\": {\r\n \"nodeType\": \"TimeSeries\",\r\n \"displayName\": \"JobQueueCount\",\r\n \"nodeDefinitionId\": \"§EmPowerJobQueueCount\",\r\n \"DataRate\": \"3600000\"\r\n \"VectorElementData\": \"[{\\\"Name\\\":\\\"JobQueueCount\\\",\\\"DisplayName\\\":\\\"JobQueueCount\\\",\\\"StorageUnitId\\\":\\\"Numeral:AH:cnt\\\",\\\"DisplayUnitId\\\":\\\"Numeral:AH:cnt\\\",\\\"DisplayUnitSymbol\\\":null,\\\"UnitGroupId\\\":null}]\"\r\n \"jobqueuecount\": \"\"\r\n },\r\n \"commandType\": 7\r\n }\r\n ]\r\n \r\nFollowing is an example of \"DeleteNodeCommand\". \"contextSelector\" is the node id to be deleted and must started with \"#\" character.\r\n \r\n [\r\n {\r\n \"contextSelector\": \"#5\",\r\n \"commandType\": 1\r\n }\r\n ]\r\n \r\nFollowing is an example of \"SetAttributeCommand\". \"contextSelector\" is the node id to be deleted and must started with \"#\" character.\r\nThe set attribute command is used to add or alter node attributes\r\n [\r\n {\r\n \"contextSelector\": \"#5\",\r\n \"name\": \"dataRate\",\r\n \"value\": \"1000\",\r\n \"commandType\": 3\r\n }\r\n ]\r\n\r\nFollowing is an example of \"UpdateNodeCommand\". \"contextSelector\" is the node id to be updated and must started with \"#\" character.\r\nNote that the set attribute command should be used to add or update node attributes\r\n\r\n [\r\n {\r\n \"contextSelector\": \"#1\",\r\n \"tag\": \"TestNode\",\r\n \"attributes\": {\r\n \"displayName\": \"TestNode\",\r\n \"nodeType\": \"Unspecified\"\r\n },\r\n \"commandType\": 8\r\n }\r\n ]\r\n \r\nFollowing is an example of \"UpdateNameCommand\". \"contextSelector\" is the path where move will happen. \r\n\r\n [\r\n {\r\n \"contextSelector\": \"~/Simulator/Farm/Powercurve1\",\r\n \"Tag\": \"NewName\",\r\n \"commandType\": 10\r\n }\r\n ]\r\nFollowing is an example of \"MoveNodeCommand\". \"contextSelector\" is the path where move will happen. \r\nsource and destination are relative to contextSelector\r\n [\r\n {\r\n \"contextSelector\": \"~/Simulator/Farm/Powercurve1\",\r\n \"source\": \".\",\r\n \"destination\": \"Forecast/Powercurve1\",\r\n \"commandType\": 2\r\n }\r\n ]\r\n\r\nFollowing is an example of \"CopyNodeCommand\". \"contextSelector\" is the path where move will happen. \r\nsource and destination are relative to contextSelector\r\ndestination node should exist eg here \"testNode\" will be copied within node \"NewLocation/test\" with the name \"testNode\"\r\n \r\n [\r\n {\r\n \"contextSelector\": \"~/\",\r\n \"source\": \"testNode\",\r\n \"destination\": \"NewLocation/test\",\r\n \"commandType\": 13\r\n }\r\n ]\r\n \r\n\"commandType\" to number mapping.\r\n\r\n Unspecified = 0\r\n DeleteNode = 1\r\n MoveNodes = 2\r\n SetAttribute = 3\r\n DeleteAttribute = 4 \r\n Recalculate = 5\r\n RestartRealtime = 6\r\n CreateNode = 7\r\n UpdateNode = 8\r\n CreateCalculation = 9\r\n UpdateName = 10\r\n ReloadExternalMappings = 11\r\n FlushJobQueue = 12\r\n CopyNodes = 13",
"operationId": "Execute",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "jsonCommands",
"in": "body",
"description": "Any \"Command\" object e.g. \"CreateNodeCommand\", \"DeleteNodeCommand\", \"UpdateNodeCommand\", \"MoveNodeCommand\" etc.",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"uniqueItems": false,
"type": "array",
"items": {
"$ref": "#/definitions/Kognifai.Galore.Services.WebApi.Models.CommandResponse"
}
}
}
}
}
},
"/api/data/upsert": {
"put": {
"tags": [
"Data"
],
"operationId": "Upsert",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "data",
"in": "body",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Common.Types.CommandResponse"
}
}
}
}
},
"/api/data/delete": {
"put": {
"tags": [
"Data"
],
"summary": "Deletes the specified events",
"operationId": "Delete",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "jsonModel",
"in": "body",
"description": "json includes node selector and events to delete",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Common.Types.CommandResponse"
}
}
}
}
},
"/api/data/deleterange": {
"put": {
"tags": [
"Data"
],
"summary": "Deletes the range of data",
"operationId": "DeleteRange",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "model",
"in": "body",
"description": "Delete range model includes node selector, from date and to date",
"required": false,
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Services.WebApi.Models.DeleteRangeDataModel"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Common.Types.CommandResponse"
}
}
}
}
},
"/api/data/deleteall": {
"put": {
"tags": [
"Data"
],
"summary": "Deletes entire logged data",
"operationId": "DeleteAll",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "model",
"in": "body",
"description": "model contains node selector information",
"required": false,
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Services.WebApi.Models.DeleteAllDataModel"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Common.Types.CommandResponse"
}
}
}
}
},
"/api/data/replace": {
"put": {
"tags": [
"Data"
],
"summary": "Replaces the part of the stream history specified by the from and to parameters with the given events\r\nThe data is not pushed through the realtime pipeline and a recalculate may be needed\r\nfor the inserted data to take effect on derived streams",
"operationId": "Replace",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "model",
"in": "body",
"description": "model contains node selector, from date, to date and list of events",
"required": false,
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Services.WebApi.Models.ReplaceDataModel"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Common.Types.CommandResponse"
}
}
}
}
},
"/api/data/insert": {
"put": {
"tags": [
"Data"
],
"summary": "Inserts the events into the stream specified by the node selector\r\nOverwrites events on the exact same timestamp\r\nThe data is not pushed through the realtime pipeline and a recalculate may be needed\r\nfor the inserted data to take effect on derived streams",
"operationId": "Insert",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "jsonModel",
"in": "body",
"description": "json includes node selector and events",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Common.Types.CommandResponse"
}
}
}
}
},
"/api/data/setcomment": {
"put": {
"tags": [
"Data"
],
"summary": "Sets a comment on the specified events",
"operationId": "SetComment",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "jsonModel",
"in": "body",
"description": "json includes node selector and events to set comment on",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Common.Types.CommandResponse"
}
}
}
}
},
"/api/data/regenerateaggregates": {
"put": {
"tags": [
"Data"
],
"summary": "Regenerate aggregates",
"description": "Example \r\nnodeSelector - #31\r\nfrom - 01-01-1970 00:00:00 \r\nto - 30-12-9999 18:30:00",
"operationId": "RegenerateAggregates",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "model",
"in": "body",
"description": "model includes date from , date to and node selector",
"required": false,
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Services.WebApi.Models.RegenerateAggregatesModel"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Common.Types.CommandResponse"
}
}
}
}
},
"/api/export/csv/{queryId}": {
"get": {
"tags": [
"Export"
],
"summary": "Exports query results to CSV file",
"description": "Example query Id - 5464918a-791b-4a14-9160-5417dbc7ad46",
"operationId": "GetCsvExport",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "queryId",
"in": "path",
"description": "query Id",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/export": {
"post": {
"tags": [
"Export"
],
"summary": "Adds the query to cache",
"description": "Input json will be like below\r\n{\"query\": \"input ~/Simulator/WTUR01/W |> takebefore now 5 |> taketo now\"}\r\nafter adding query to cache this method returns GUID as queryId",
"operationId": "PostQuery",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "json",
"in": "body",
"description": "query",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "string"
}
}
}
}
},
"/api/NodeDefinition": {
"get": {
"tags": [
"NodeDefinition"
],
"summary": "Gets the node definition templates",
"description": "Example \r\nselector - ~/Simulator/WTUR01/W",
"operationId": "GetNodeDefinitions",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "selector",
"in": "query",
"description": "node selector",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/NodeDefinition/tonodedefinition": {
"put": {
"tags": [
"NodeDefinition"
],
"summary": "Saves node as template",
"description": "Examples \r\nselector - \"~/Empower\"",
"operationId": "ToNodeDefinitionDC",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [],
"parameters": [
{
"name": "selector",
"in": "body",
"description": "node selector",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/NodeDefinition/createnode/{nodeDefinitionId}": {
"put": {
"tags": [
"NodeDefinition"
],
"operationId": "CreateNodesUsingDefinition",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [],
"parameters": [
{
"name": "nodeDefinitionId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "node",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Services.WebApi.Models.CreateNodeTemplateModel"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/NodeDefinition/update/{nodeDefinitionId}": {
"put": {
"tags": [
"NodeDefinition"
],
"summary": "Updates the nodes by using node templates",
"description": "Example \r\nnodeDefinitionId - §EmPower\r\nselector - #2344",
"operationId": "UpdateNodesUsingDefinition",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [],
"parameters": [
{
"name": "nodeDefinitionId",
"in": "path",
"description": "node template Id",
"required": true,
"type": "string"
},
{
"name": "selector",
"in": "body",
"description": "node selector to update",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/NodeDefinition/savenodeasdefinition": {
"put": {
"tags": [
"NodeDefinition"
],
"summary": "SaveNode as definition",
"description": "Example \r\n\r\n{\r\n \"selector\": \"#43\",\r\n \"nodeDefinitionId\": \"templateNodeId43\",\r\n \"path\": \"test\"\r\n}",
"operationId": "SaveNodeAsDefinition",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [],
"parameters": [
{
"name": "definition",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Services.WebApi.Models.SaveNodeAsDefinitionTemplate"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/NodeSelector": {
"get": {
"tags": [
"NodeSelector"
],
"summary": "Gets the node information based on selector",
"description": "Example - \r\nselector - ~/Simulator/WTUR01/W\r\nmaxLevelsOfChildren = 1",
"operationId": "GetNodes",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "selector",
"in": "query",
"description": "node path or node id",
"required": false,
"type": "string"
},
{
"name": "maxLevelsOfChildren",
"in": "query",
"description": "Level of childrens",
"required": false,
"type": "integer",
"format": "int32"
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/Query/execute": {
"post": {
"tags": [
"Query"
],
"summary": "Executes the given TQL queries",
"description": "Json should be an array of tql queries\r\n[\r\n\"Tql query 1\", \"Tql query 2\"\r\n]\r\nExample :\r\n[ \"input ~/Simulator/WTUR01/W |> takebefore now 5 |> taketo now\", input ~/Simulator/WTUR02/W |> takebefore now 5 |> taketo now\"]",
"operationId": "ExecuteQuery",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [],
"parameters": [
{
"name": "json",
"in": "body",
"description": "Json embedded with tql query",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/Query": {
"post": {
"tags": [
"Query"
],
"summary": "Executes the given TQL queries",
"description": "Json should be an array of tql queries\r\n[\r\n\"Tql query 1\", \"Tql query 2\"\r\n]\r\nExample :\r\n[ \"input ~/Simulator/WTUR01/W |> takebefore now 5 |> taketo now\", input ~/Simulator/WTUR02/W |> takebefore now 5 |> taketo now\"]",
"operationId": "ExecuteAndGetMetadata",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [],
"parameters": [
{
"name": "json",
"in": "body",
"description": "Json embedded with tql query",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/Query/parse": {
"post": {
"tags": [
"Query"
],
"summary": "Parses the given TQL query",
"description": "Json should include \"query\" like below\r\n{\r\n\"query\" : \"Tql query\"\r\n}\r\nExample :\r\n{\r\n\"query\" : \"input ~/Simulator/WTUR01/W |> takebefore now 5 |> taketo now\"\r\n}",
"operationId": "ParseQuery",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "json",
"in": "body",
"description": "Json embedded with tql query",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "string"
}
}
}
}
},
"/api/Query/metadata": {
"post": {
"tags": [
"Query"
],
"summary": "Gets the meta data of the given TQL query",
"description": "Json should include \"query\" like below\r\n{\r\n\"query\" : \"Tql query\", \"context\":\"some context\"\r\n}\r\nExample :\r\n{\r\n\"query\" : \"input ~/Simulator/WTUR01/W |> takebefore now 5 |> taketo now\",\r\n\"context\" : \"#1\"\r\n}",
"operationId": "GetQueryMetadata",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "json",
"in": "body",
"description": "Json embedded with tql query and context",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Kognifai.Galore.Common.Types.QueryResultMetadata"
}
}
}
}
},
"/api/Query/resolve": {
"post": {
"tags": [
"Query"
],
"summary": "Resolves the nodes",
"description": "Json should include node and context like below\r\n{\r\n\"nodeSelector\" : \"node id or node path\", \r\n\"contextSelector\":\"node context\"\\\r\n}\r\nExample :\r\n{\r\n\"nodeSelector\" : \"#1\",\r\n\"contextSelector\" : \"#1\"\r\n}",
"operationId": "ResolveNodes",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "json",
"in": "body",
"description": "Json embedded with node and context",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"uniqueItems": false,
"type": "array",
"items": {
"format": "int64",
"type": "integer"
}
}
}
}
}
},
"/api/streams/streamIds": {
"get": {
"tags": [
"Streams"
],
"operationId": "GetStreamIds",
"consumes": [],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [],
"responses": {
"200": {
"description": "Success",
"schema": {
"uniqueItems": false,
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
"/api/streams/vectorstreams": {
"get": {
"tags": [
"Streams"
],
"operationId": "GetVectorStreams",
"consumes": [],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "string"
}
}
}
}
},
"/api/units": {
"get": {
"tags": [
"Unit"
],
"operationId": "GetUnits",
"consumes": [],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [],
"responses": {
"200": {
"description": "Success",
"schema": {
"uniqueItems": false,
"type": "array",
"items": {
"$ref": "#/definitions/Kognifai.Galore.Services.WebApi.Models.UnitModel"
}
}
}
}
}
},
"/api/units/dimensions/{dimension}": {
"get": {
"tags": [
"Unit"
],
"operationId": "GetDimension",
"consumes": [],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "dimension",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"uniqueItems": false,
"type": "array",
"items": {
"$ref": "#/definitions/Kognifai.Galore.Services.WebApi.Models.UnitModel"
}
}
}
}
}
},
"/api/version": {
"get": {
"tags": [
"Version"
],
"summary": "Gets the API version",
"operationId": "GetVersion",
"consumes": [],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "string"
}
}
}
}
}
},
"definitions": {
"Kognifai.Galore.Services.WebApi.Models.CommandResponse": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"errorMessage": {
"type": "string"
},
"unauthorized": {
"type": "boolean"
}
}
},
"Kognifai.Galore.Common.Types.CommandResponse": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"errorMessage": {
"type": "string"
},
"unauthorized": {
"type": "boolean"
}
}
},
"Kognifai.Galore.Services.WebApi.Models.DeleteRangeDataModel": {
"type": "object",
"properties": {
"nodesSelector": {
"type": "string"
},
"from": {
"format": "date-time",
"type": "string"
},
"to": {
"format": "date-time",
"type": "string"
}
}
},
"Kognifai.Galore.Services.WebApi.Models.DeleteAllDataModel": {
"type": "object",
"properties": {
"nodesSelector": {
"type": "string"
}
}
},
"Kognifai.Galore.Services.WebApi.Models.ReplaceDataModel": {
"type": "object",
"properties": {
"nodesSelector": {
"type": "string"
},
"from": {
"format": "date-time",
"type": "string"
},
"to": {
"format": "date-time",
"type": "string"
},
"events": {
"uniqueItems": false,
"type": "array",
"items": {
"$ref": "#/definitions/Kognifai.Galore.Services.WebApi.Models.EventModel"
}
}
}
},
"Kognifai.Galore.Services.WebApi.Models.EventModel": {
"type": "object",
"properties": {
"time": {
"format": "date-time",
"type": "string"
},
"eventType": {
"format": "int32",
"enum": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14
],
"type": "integer",
"readOnly": true
}
}
},
"Kognifai.Galore.Services.WebApi.Models.RegenerateAggregatesModel": {
"type": "object",
"properties": {
"nodesSelector": {
"type": "string"
},
"from": {
"format": "date-time",
"type": "string"
},
"to": {
"format": "date-time",
"type": "string"
}
}
},
"Kognifai.Galore.Services.WebApi.Models.CreateNodeTemplateModel": {
"type": "object",
"properties": {
"selector": {
"type": "string"
},
"displayName": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"Kognifai.Galore.Services.WebApi.Models.SaveNodeAsDefinitionTemplate": {
"type": "object",
"properties": {
"selector": {
"type": "string"
},
"nodeDefinitionId": {
"type": "string"
},
"path": {
"type": "string"
}
}
},
"Kognifai.Galore.Common.Types.QueryResultMetadata": {
"type": "object",
"properties": {
"eventDataType": {
"format": "int32",
"enum": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
],
"type": "integer",
"readOnly": true
},
"eventMetadata": {
"$ref": "#/definitions/Kognifai.Galore.Common.Types.EventMetadata",
"readOnly": true
},
"outputInterval": {
"type": "string",
"readOnly": true
}
}
},
"Kognifai.Galore.Common.Types.EventMetadata": {
"type": "object",
"properties": {}
},
"Kognifai.Galore.Services.WebApi.Models.UnitModel": {
"type": "object",
"properties": {
"unitId": {
"type": "string",
"readOnly": true
},
"symbol": {
"type": "string",
"readOnly": true
},
"scale": {
"format": "double",
"type": "number",
"readOnly": true
},
"offset": {
"format": "double",
"type": "number",
"readOnly": true
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.