{ "swagger" : "2.0", "info" : { "version" : "4.1.2", "title" : "Poin App" }, "host" : "{{host}}", "basePath" : "{{basePath}}", "schemes" : [ "{{schemes}}" ], "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "paths" : { "/unit/api/run" : { "post" : { "description" : "Method Description -- run", "operationId" : "run", "tags" : [ "UnitJobApiResource" ], "parameters" : [ { "name" : "triggerunitparam", "in" : "body", "required" : "true", "schema" : { "$ref" : "#/definitions/TriggerUnitParam" }, "description" : "parameter name -- triggerunitparam" } ], "responses" : { "200" : { "schema" : { "$ref" : "#/definitions/ReturnT" }, "description" : "Response OK" } } } }, "/unit/api/executor/list" : { "GET" : { "description" : "Method Description -- list", "operationId" : "list", "tags" : [ "UnitJobApiResource" ], "responses" : { "200" : { "schema" : { "type" : "array", "items" : { "$ref" : "#/definitions/XxlJobGroup" } }, "description" : "Response OK" } } } }, "/unit/api/childFlow/logs" : { "get" : { "description" : "Method Description -- childFlowNodeLogs", "operationId" : "childFlowNodeLogs", "tags" : [ "UnitJobApiResource" ], "parameters" : [ { "name" : "id", "in" : "query", "required" : "false", "type" : "integer", "description" : "parameter name -- id" } ], "responses" : { "200" : { "schema" : { "type" : "array", "items" : { "$ref" : "#/definitions/XxlJobLog" } }, "description" : "Response OK" } } } }, "/unit/api/subLogs" : { "get" : { "description" : "Method Description -- subLogs", "operationId" : "subLogs", "tags" : [ "UnitJobApiResource" ], "parameters" : [ { "name" : "id", "in" : "query", "required" : "false", "type" : "integer", "description" : "parameter name -- id" } ], "responses" : { "200" : { "schema" : { "type" : "array", "items" : { "$ref" : "#/definitions/SubJobLog" } }, "description" : "Response OK" } } } }, "/unit/api/syncData" : { "post" : { "description" : "Method Description -- syncData", "operationId" : "syncData", "tags" : [ "UnitJobApiResource" ], "parameters" : [ { "name" : "syncunitparam", "in" : "body", "required" : "true", "schema" : { "$ref" : "#/definitions/SyncUnitParam" }, "description" : "parameter name -- syncunitparam" } ], "responses" : { "200" : { "schema" : { "type" : "object", "additionalProperties" : { "$ref" : "#/definitions/Object" } }, "description" : "Response OK" } } } } }, "definitions" : { "SyncUnitParam" : { "type" : "object", "properties" : { "jsonStr" : { "type" : "string" }, "syncType" : { "type" : "string" } } }, "ReturnT" : { "type" : "object", "properties" : { "code" : { "type" : "integer" }, "msg" : { "type" : "string" }, "content" : { "$ref" : "#/definitions/Object" }, "transferParam" : { "type" : "string" }, "shardingItemParams" : { "type" : "string" }, "errorMsg" : { "type" : "string" } } }, "TriggerUnitParam" : { "type" : "object", "properties" : { "triggerType" : { "$ref" : "#/definitions/TriggerTypeEnum" }, "executorParam" : { "type" : "string" }, "subJobLogIds" : { "type" : "array", "items" : { "type" : "integer" } }, "jobLogId" : { "type" : "integer" }, "subLogId" : { "type" : "integer" }, "nodeInfo" : { "$ref" : "#/definitions/PoinFlowNode" }, "shareParam" : { "type" : "string" } } }, "XxlJobGroup" : { "type" : "object", "properties" : { "id" : { "type" : "integer" }, "appname" : { "type" : "string" }, "title" : { "type" : "string" }, "unitTag" : { "type" : "string" }, "addressType" : { "type" : "integer" }, "addressList" : { "type" : "string" }, "registryList" : { "type" : "array", "items" : { "type" : "string" } } } }, "XxlJobLog" : { "type" : "object", "properties" : { "id" : { "type" : "number" }, "jobGroup" : { "type" : "integer" }, "jobId" : { "type" : "integer" }, "jobName" : { "type" : "string" }, "executorAddress" : { "type" : "string" }, "executorHandler" : { "type" : "string" }, "executorParam" : { "type" : "string" }, "executorShardingParam" : { "type" : "string" }, "executorFailRetryCount" : { "type" : "integer" }, "executorWeight" : { "type" : "string" }, "triggerTime" : { "type" : "string" }, "triggerCode" : { "type" : "integer" }, "triggerMsg" : { "type" : "string" }, "handleTime" : { "type" : "string" }, "costTime" : { "type" : "integer" }, "handleCode" : { "type" : "integer" }, "handleMsg" : { "type" : "string" }, "alarmStatus" : { "type" : "integer" }, "flowId" : { "type" : "string" }, "flowVersionId" : { "type" : "integer" }, "flowLogId" : { "type" : "integer" }, "nodeId" : { "type" : "string" }, "nodeName" : { "type" : "string" }, "operator" : { "type" : "string" }, "operateTime" : { "type" : "string" }, "operation" : { "type" : "string" }, "rebootId" : { "type" : "number" }, "flowDesc" : { "type" : "string" }, "shardingTotal" : { "type" : "integer" }, "shardingItemParams" : { "type" : "string" }, "grayStrategyParams" : { "type" : "string" }, "updateNum" : { "type" : "integer" }, "lightBatch" : { "type" : "string" }, "whetherFlow" : { "type" : "string" }, "unitTag" : { "type" : "string" }, "adminJobLogId" : { "type" : "integer" } } }, "TriggerTypeEnum" : { "type" : "object", "properties" : { "title" : { "type" : "string" } } }, "PoinFlowNode" : { "type" : "object", "properties" : { "nodeId" : { "type" : "string" }, "nodeName" : { "type" : "string" }, "nodeType" : { "type" : "string" }, "nodeStatus" : { "type" : "integer" }, "preNode" : { "type" : "array", "items" : { "$ref" : "#/definitions/String" } }, "nextNode" : { "type" : "array", "items" : { "$ref" : "#/definitions/String" } }, "jobId" : { "type" : "integer" }, "flowId" : { "type" : "string" }, "ignoreFlag" : { "type" : "integer" }, "shareParamFlag" : { "type" : "integer" }, "isSharding" : { "type" : "integer" }, "whetherFlow" : { "type" : "string" }, "preCondition" : { "$ref" : "#/definitions/HashMap" }, "nextCondition" : { "$ref" : "#/definitions/HashMap" }, "timeLimit" : { "type" : "integer" }, "warnFrequency" : { "type" : "integer" }, "fixedHours" : { "type" : "string" }, "fixedMinutes" : { "type" : "string" }, "unitFlag" : { "type" : "string" }, "distributeUnit" : { "type" : "string" }, "unitRouteStrategy" : { "type" : "string" } } }, "Object" : { "type" : "object", "properties" : { } }, "SubJobLog" : { "type" : "object", "properties" : { "id" : { "type" : "number" }, "jobLogId" : { "type" : "number" }, "jobGroup" : { "type" : "integer" }, "jobId" : { "type" : "integer" }, "jobName" : { "type" : "string" }, "executorAddress" : { "type" : "string" }, "executorHandler" : { "type" : "string" }, "executorParam" : { "type" : "string" }, "executorShardingParam" : { "type" : "string" }, "executorFailRetryCount" : { "type" : "integer" }, "triggerTime" : { "type" : "string" }, "triggerCode" : { "type" : "integer" }, "triggerMsg" : { "type" : "string" }, "handleTime" : { "type" : "string" }, "handleCode" : { "type" : "integer" }, "handleMsg" : { "type" : "string" }, "alarmStatus" : { "type" : "integer" }, "flowId" : { "type" : "string" }, "flowVersionId" : { "type" : "integer" }, "flowLogId" : { "type" : "integer" }, "nodeId" : { "type" : "string" }, "nodeName" : { "type" : "string" }, "operator" : { "type" : "string" }, "operateTime" : { "type" : "string" }, "operation" : { "type" : "string" }, "rebootId" : { "type" : "number" }, "shardingTotal" : { "type" : "integer" }, "shardingIndex" : { "type" : "integer" }, "lightBatch" : { "type" : "string" }, "unitTag" : { "type" : "string" } } }, "HashMap" : { "type" : "object", "properties" : { } } } }