{ "swagger" : "2.0", "info" : { "version" : "4.1.2", "title" : "Poin App" }, "host" : "{{host}}", "basePath" : "{{basePath}}", "schemes" : [ "{{schemes}}" ], "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "paths" : { "/workFlowTaskAgent/delete" : { "post" : { "description" : "Method Description -- delete", "operationId" : "delete", "tags" : [ "WorkFlowTaskAgentResource" ], "parameters" : [ { "name" : "delegationId", "in" : "query", "required" : "false", "type" : "string", "description" : "parameter name -- delegationId" } ], "responses" : { "200" : { "description" : "Response OK" } } } }, "/workFlowTaskAgent/personal" : { "get" : { "description" : "Method Description -- listPersonalTaskAgent", "operationId" : "listPersonalTaskAgent", "tags" : [ "WorkFlowTaskAgentResource" ], "parameters" : [ { "name" : "agentLogName", "in" : "query", "required" : "false", "type" : "string", "description" : "parameter name -- agentLogName" }, { "name" : "processDefId", "in" : "query", "required" : "false", "type" : "string", "description" : "parameter name -- processDefId" }, { "name" : "offset", "in" : "query", "required" : "false", "type" : "integer", "description" : "parameter name -- offset" }, { "name" : "limit", "in" : "query", "required" : "false", "type" : "integer", "description" : "parameter name -- limit" } ], "responses" : { "200" : { "schema" : { "$ref" : "#/definitions/PagingData" }, "description" : "Response OK" } } } }, "/workFlowTaskAgent/departments" : { "get" : { "description" : "Method Description -- getDepartmentList", "operationId" : "getDepartmentList", "tags" : [ "WorkFlowTaskAgentResource" ], "parameters" : [ ], "responses" : { "200" : { "schema" : { "type" : "array", "items" : { "$ref" : "#/definitions/TreeNode" } }, "description" : "Response OK" } } } }, "/workFlowTaskAgent/users" : { "get" : { "description" : "Method Description -- getPersonsByDepartmentId", "operationId" : "getPersonsByDepartmentId", "tags" : [ "WorkFlowTaskAgentResource" ], "parameters" : [ { "name" : "departmentId", "in" : "query", "required" : "false", "type" : "string", "description" : "parameter name -- departmentId" }, { "name" : "personLogName", "in" : "query", "required" : "false", "type" : "string", "description" : "parameter name -- personLogName" }, { "name" : "personName", "in" : "query", "required" : "false", "type" : "string", "description" : "parameter name -- personName" }, { "name" : "offset", "in" : "query", "required" : "false", "type" : "integer", "description" : "parameter name -- offset" }, { "name" : "limit", "in" : "query", "required" : "false", "type" : "integer", "description" : "parameter name -- limit" } ], "responses" : { "200" : { "schema" : { "$ref" : "#/definitions/PagingData" }, "description" : "Response OK" } } } }, "/workFlowTaskAgent" : { "get" : { "description" : "Method Description -- listTaskAgent", "operationId" : "listTaskAgent", "tags" : [ "WorkFlowTaskAgentResource" ], "parameters" : [ { "name" : "agentLogName", "in" : "query", "required" : "false", "type" : "string", "description" : "parameter name -- agentLogName" }, { "name" : "processDefId", "in" : "query", "required" : "false", "type" : "string", "description" : "parameter name -- processDefId" }, { "name" : "offset", "in" : "query", "required" : "false", "type" : "integer", "description" : "parameter name -- offset" }, { "name" : "limit", "in" : "query", "required" : "false", "type" : "integer", "description" : "parameter name -- limit" } ], "responses" : { "200" : { "schema" : { "$ref" : "#/definitions/PagingData" }, "description" : "Response OK" } } }, "post" : { "description" : "Method Description -- saveOrUpdate", "operationId" : "saveOrUpdate", "tags" : [ "WorkFlowTaskAgentResource" ], "parameters" : [ { "name" : "wfdelegationformext", "in" : "body", "required" : "true", "schema" : { "$ref" : "#/definitions/WfDelegationFormExt" }, "description" : "parameter name -- wfdelegationformext" } ], "responses" : { "200" : { "schema" : { "type" : "object", "additionalProperties" : { "type" : "string" } }, "description" : "Response OK" } } } }, "/workFlowTaskAgent/processes" : { "get" : { "description" : "Method Description -- getProcess", "operationId" : "getProcess", "tags" : [ "WorkFlowTaskAgentResource" ], "responses" : { "200" : { "schema" : { "type" : "array", "items" : { "$ref" : "#/definitions/ComboData" } }, "description" : "Response OK" } } } }, "/workFlowTaskAgent/info" : { "get" : { "description" : "Method Description -- getById", "operationId" : "getById", "tags" : [ "WorkFlowTaskAgentResource" ], "parameters" : [ { "name" : "delegationId", "in" : "query", "required" : "false", "type" : "string", "description" : "parameter name -- delegationId" } ], "responses" : { "200" : { "schema" : { "$ref" : "#/definitions/WfDelegationFormExt" }, "description" : "Response OK" } } } } }, "definitions" : { "WfDelegationFormExt" : { "type" : "object", "properties" : { "delegationId" : { "type" : "integer" }, "processDefinitionId" : { "type" : "string" }, "ownerLogName" : { "type" : "string" }, "agentLogName" : { "type" : "string" }, "ownerDepartmentId" : { "type" : "integer" }, "agentDepartmentId" : { "type" : "integer" }, "startTime" : { "type" : "string" }, "endTime" : { "type" : "string" }, "createDate" : { "type" : "string" }, "state" : { "type" : "integer" }, "agentPersonId" : { "type" : "integer" }, "ownerPersonId" : { "type" : "integer" }, "agentWay" : { "type" : "integer" }, "agentReason" : { "type" : "string" }, "createLogName" : { "type" : "string" }, "terminateReason" : { "type" : "string" }, "agentCnName" : { "type" : "string" }, "clientName" : { "type" : "string" }, "roleId" : { "type" : "integer" }, "ifTrans" : { "type" : "integer" }, "ownerDepartmentName" : { "type" : "string" }, "agentDepartmentName" : { "type" : "string" } } }, "PagingData" : { "type" : "object", "properties" : { "offset" : { "type" : "integer" }, "total" : { "type" : "integer" }, "limit" : { "type" : "integer" }, "order" : { "type" : "string" }, "rows" : { "type" : "array", "items" : { "type" : "string" } }, "sort" : { "type" : "string" }, "search" : { "type" : "string" } } }, "ComboData" : { "type" : "object", "properties" : { "value" : { "type" : "string" }, "text" : { "type" : "string" } } }, "TreeNode" : { "type" : "object", "properties" : { "id" : { "type" : "string" }, "text" : { "type" : "string" }, "href" : { "type" : "string" }, "tags" : { "type" : "array", "items" : { "$ref" : "#/definitions/String" } }, "parentId" : { "type" : "string" } } } } }