{ "swagger": "2.0", "info": { "version": "1.0", "title": "api" }, "basePath": "/activiti-rest/service", "tags": [ { "name": "Activiti Resource" } ], "paths": { "/repository/deployments": { "post": { "tags": [ "Activiti Resource" ], "summary": "deploy bpmn file", "description": "", "operationId": "deployBpmnFile", "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "parameters": [ { "name": "file", "in": "formData", "description": "file inputstream", "required": true, "type": "file" } ], "responses": { "201": { "description": "created" }, "400": { "description": "deploy failed" } } } }, "/repository/deployments/{deploymentId}": { "delete": { "tags": [ "Activiti Resource" ], "summary": "undeploy bpmn file", "description": "", "operationId": "undeployBpmnFile", "consumes": [ "text/plain" ], "produces": [ "application/json" ], "parameters": [ { "name": "deploymentId", "in": "path", "description": "deploymentId", "required": true, "type": "string" } ], "responses": { "204": { "description": "successful operation" }, "404": { "description": "not find service" } } } }, "/runtime/process-instances": { "post": { "tags": [ "Activiti Resource" ], "summary": "package process", "description": "", "operationId": "startProcess", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "in": "body", "name": "body", "description": "request", "required": false, "schema": { "$ref": "#/definitions/StartProcessRequest" } } ], "responses": { "201": { "description": "successful", "schema": { "$ref": "#/definitions/ResponseInstance" } }, "404": { "description": "error ", "schema": { "type": "string" } } } } } }, "definitions": { "ResponseInstance": { "type": "object", "properties": { "id": { "type": "string" }, "url": { "type": "string" }, "businessKey": { "type": "string" }, "processDefinitionUrl": { "type": "string" }, "activityId": { "type": "string" } } }, "StartProcessRequest": { "type": "object", "properties": { "processDefinitionId": { "type": "string" }, "businessKey": { "type": "string" }, "variables": { "type": "object", "additionalProperties": { "type": "string" } } } } } }