summaryrefslogtreecommitdiffstats
path: root/activiti-extension/src/main/docker/swagger.json
diff options
context:
space:
mode:
Diffstat (limited to 'activiti-extension/src/main/docker/swagger.json')
-rw-r--r--activiti-extension/src/main/docker/swagger.json161
1 files changed, 161 insertions, 0 deletions
diff --git a/activiti-extension/src/main/docker/swagger.json b/activiti-extension/src/main/docker/swagger.json
new file mode 100644
index 0000000..ad4a6ad
--- /dev/null
+++ b/activiti-extension/src/main/docker/swagger.json
@@ -0,0 +1,161 @@
+{
+ "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"
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file