diff options
author | Zhaoxing <meng.zhaoxing1@zte.com.cn> | 2017-11-01 14:34:44 +0800 |
---|---|---|
committer | Zhaoxing <meng.zhaoxing1@zte.com.cn> | 2017-11-01 14:34:44 +0800 |
commit | 1efc786e8d10edf728b8442ca98b36b681da29d8 (patch) | |
tree | 41dab5d60a6f442662f43b9f9ce64c1a75be01b9 /activiti-extension | |
parent | 20babe4f7936a82c54d43e715efebe1fbc680525 (diff) |
Fix the docker build error for vfc-nfvo-wfengine
Change-Id: I0421eff58c13aa93a2b2f533cc4b9e2d74b20c66
Issue-id: VFC-445
Signed-off-by: Zhaoxing <meng.zhaoxing1@zte.com.cn>
Diffstat (limited to 'activiti-extension')
-rw-r--r-- | activiti-extension/src/main/docker/activiti-docker-build_image.sh | 2 | ||||
-rw-r--r-- | activiti-extension/src/main/docker/swagger.json | 161 |
2 files changed, 163 insertions, 0 deletions
diff --git a/activiti-extension/src/main/docker/activiti-docker-build_image.sh b/activiti-extension/src/main/docker/activiti-docker-build_image.sh index 4235c18..4dfa0de 100644 --- a/activiti-extension/src/main/docker/activiti-docker-build_image.sh +++ b/activiti-extension/src/main/docker/activiti-docker-build_image.sh @@ -108,6 +108,8 @@ wget -O activiti-extension.jar "${NEXUS_REPOS_URL}/service/local/artifact/maven/ rm -Rf ./temp/ mkdir -p ./temp/WEB-INF/lib/ cp -f activiti-extension*.jar ./temp/WEB-INF/lib/activiti-extension.jar +cp -f swagger.json ./temp/ + echo "download jackson-annotations 2.5.1" wget -O jackson-annotations-2.2.3.jar "${NEXUS_REPOS_URL}/service/local/artifact/maven/content?r=central&g=com.fasterxml.jackson.core&a=jackson-annotations&e=jar&v=2.5.1" 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 |