processDefManager.json 7.17 KB
{
  "swagger" : "2.0",
  "info" : {
    "version" : "1.0.0",
    "title" : "Application"
  },
  "host" : "{{host}}",
  "basePath" : "{{basePath}}",
  "schemes" : [ "{{schemes}}" ],
  "consumes" : [ "application/json", "application/xml" ],
  "produces" : [ "application/json", "application/xml" ],
  "paths" : {
    "/workFlowDefinition/upload" : {
      "post" : {
        "description" : "Method Description -- upload",
        "operationId" : "upload",
        "tags" : [ "WorkFlowDefManagerResource" ],
        "produces" : [ "text/json" ],
        "consumes" : [ "multipart/form-data" ],
        "parameters" : [ {
          "name" : "multipartformdatainput",
          "in" : "body",
          "required" : "true",
          "schema" : {
            "$ref" : "#/definitions/MultipartFormDataInput"
          },
          "description" : "parameter name -- multipartformdatainput"
        }, {
          "name" : "httpservletrequest",
          "in" : "body",
          "required" : "true",
          "schema" : {
            "$ref" : "#/definitions/HttpServletRequest"
          },
          "description" : "parameter name -- httpservletrequest"
        } ],
        "responses" : {
          "200" : {
            "schema" : {
              "type" : "object",
              "additionalProperties" : {
                "type" : "string"
              }
            },
            "description" : "Response OK"
          }
        }
      }
    },
    "/workFlowDefinition/view/{nodeId}" : {
      "get" : {
        "description" : "Method Description -- viewWorkFlow",
        "operationId" : "viewWorkFlow",
        "tags" : [ "WorkFlowDefManagerResource" ],
        "parameters" : [ {
          "name" : "nodeId",
          "in" : "path",
          "required" : "true",
          "type" : "string",
          "description" : "parameter name -- nodeId"
        }, {
          "name" : "httpservletrequest",
          "in" : "body",
          "required" : "true",
          "schema" : {
            "$ref" : "#/definitions/HttpServletRequest"
          },
          "description" : "parameter name -- httpservletrequest"
        } ],
        "responses" : {
          "200" : {
            "schema" : {
              "type" : "string"
            },
            "description" : "Response OK"
          }
        }
      }
    },
    "/workFlowDefinition/download" : {
      "get" : {
        "description" : "Method Description -- downLoadFile",
        "operationId" : "downLoadFile",
        "tags" : [ "WorkFlowDefManagerResource" ],
        "parameters" : [ {
          "name" : "wfname",
          "in" : "query",
          "required" : "false",
          "type" : "string",
          "description" : "parameter name -- wfname"
        }, {
          "name" : "version",
          "in" : "query",
          "required" : "false",
          "type" : "string",
          "description" : "parameter name -- version"
        } ],
        "responses" : {
          "200" : {
            "schema" : {
              "$ref" : "#/definitions/Response"
            },
            "description" : "Response OK"
          }
        }
      }
    },
    "/workFlowDefinition/processList" : {
      "get" : {
        "description" : "Method Description -- getProcessList",
        "operationId" : "getProcessList",
        "tags" : [ "WorkFlowDefManagerResource" ],
        "responses" : {
          "200" : {
            "schema" : {
              "type" : "array",
              "items" : {
                "$ref" : "#/definitions/ComboData"
              }
            },
            "description" : "Response OK"
          }
        }
      }
    },
    "/workFlowDefinition/{nodeId}" : {
      "get" : {
        "description" : "Method Description -- findByNodeId",
        "operationId" : "findByNodeId",
        "tags" : [ "WorkFlowDefManagerResource" ],
        "parameters" : [ {
          "name" : "nodeId",
          "in" : "path",
          "required" : "true",
          "type" : "string",
          "description" : "parameter name -- nodeId"
        } ],
        "responses" : {
          "200" : {
            "schema" : {
              "type" : "object",
              "additionalProperties" : {
                "$ref" : "#/definitions/Object"
              }
            },
            "description" : "Response OK"
          }
        }
      }
    },
    "/workFlowDefinition" : {
      "get" : {
        "description" : "Method Description -- listWorkFlowDefinitions",
        "operationId" : "listWorkFlowDefinitions",
        "tags" : [ "WorkFlowDefManagerResource" ],
        "responses" : {
          "200" : {
            "schema" : {
              "type" : "array",
              "items" : {
                "$ref" : "#/definitions/TreeNode"
              }
            },
            "description" : "Response OK"
          }
        }
      }
    },
    "/workFlowDefinition/delete" : {
      "post" : {
        "description" : "Method Description -- deleteWorkFlowDefinition",
        "operationId" : "deleteWorkFlowDefinition",
        "tags" : [ "WorkFlowDefManagerResource" ],
        "parameters" : [ {
          "name" : "nodeId",
          "in" : "query",
          "required" : "false",
          "type" : "string",
          "description" : "parameter name -- nodeId"
        }, {
          "name" : "parentId",
          "in" : "query",
          "required" : "false",
          "type" : "string",
          "description" : "parameter name -- parentId"
        } ],
        "responses" : {
          "200" : {
            "description" : "Response OK"
          }
        }
      }
    },
    "/workFlowDefinition/allVersionProcess" : {
      "get" : {
        "description" : "Method Description -- getAllVersionList",
        "operationId" : "getAllVersionList",
        "tags" : [ "WorkFlowDefManagerResource" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "query",
          "required" : "false",
          "type" : "string",
          "description" : "parameter name -- id"
        } ],
        "responses" : {
          "200" : {
            "schema" : {
              "type" : "array",
              "items" : {
                "$ref" : "#/definitions/ComboData"
              }
            },
            "description" : "Response OK"
          }
        }
      }
    }
  },
  "definitions" : {
    "HttpServletRequest" : {
      "type" : "object",
      "properties" : { }
    },
    "Response" : {
      "type" : "object",
      "properties" : { }
    },
    "MultipartFormDataInput" : {
      "type" : "object",
      "properties" : { }
    },
    "ComboData" : {
      "type" : "object",
      "properties" : {
        "value" : {
          "type" : "string"
        },
        "text" : {
          "type" : "string"
        }
      }
    },
    "Object" : {
      "type" : "object",
      "properties" : { }
    },
    "TreeNode" : {
      "type" : "object",
      "properties" : {
        "id" : {
          "type" : "string"
        },
        "tags" : {
          "type" : "array",
          "items" : {
            "$ref" : "#/definitions/String"
          }
        },
        "text" : {
          "type" : "string"
        },
        "href" : {
          "type" : "string"
        },
        "parentId" : {
          "type" : "string"
        }
      }
    }
  }
}