Fix the docker build error for vfc-nfvo-wfengine
[vfc/nfvo/wfengine.git] / activiti-extension / src / main / docker / swagger.json
1 {
2   "swagger": "2.0",
3   "info": {
4     "version": "1.0",
5     "title": "api"
6   },
7   "basePath": "/activiti-rest/service",
8   "tags": [
9     {
10       "name": "Activiti Resource"
11     }
12   ],
13   "paths": {
14     "/repository/deployments": {
15       "post": {
16         "tags": [
17           "Activiti Resource"
18         ],
19         "summary": "deploy bpmn file",
20         "description": "",
21         "operationId": "deployBpmnFile",
22         "consumes": [
23           "multipart/form-data"
24         ],
25         "produces": [
26           "application/json"
27         ],
28         "parameters": [
29           {
30             "name": "file",
31             "in": "formData",
32             "description": "file inputstream",
33             "required": true,
34             "type": "file"
35           }
36         ],
37         "responses": {
38           "201": {
39             "description": "created"
40           },
41           "400": {
42             "description": "deploy failed"
43           }
44         }
45       }
46     },
47     "/repository/deployments/{deploymentId}": {
48       "delete": {
49         "tags": [
50           "Activiti Resource"
51         ],
52         "summary": "undeploy bpmn file",
53         "description": "",
54         "operationId": "undeployBpmnFile",
55         "consumes": [
56           "text/plain"
57         ],
58         "produces": [
59           "application/json"
60         ],
61         "parameters": [
62           {
63             "name": "deploymentId",
64             "in": "path",
65             "description": "deploymentId",
66             "required": true,
67             "type": "string"
68           }
69         ],
70         "responses": {
71           "204": {
72             "description": "successful operation"
73           },
74           "404": {
75             "description": "not find service"
76           }
77         }
78       }
79     },
80     "/runtime/process-instances": {
81       "post": {
82         "tags": [
83           "Activiti Resource"
84         ],
85         "summary": "package process",
86         "description": "",
87         "operationId": "startProcess",
88         "consumes": [
89           "application/json"
90         ],
91         "produces": [
92           "application/json"
93         ],
94         "parameters": [
95           {
96             "in": "body",
97             "name": "body",
98             "description": "request",
99             "required": false,
100             "schema": {
101               "$ref": "#/definitions/StartProcessRequest"
102             }
103           }
104         ],
105         "responses": {
106           "201": {
107             "description": "successful",
108             "schema": {
109               "$ref": "#/definitions/ResponseInstance"
110             }
111           },
112           "404": {
113             "description": "error ",
114             "schema": {
115               "type": "string"
116             }
117           }
118         }
119       }
120     }
121   },
122   "definitions": {
123     "ResponseInstance": {
124       "type": "object",
125       "properties": {
126         "id": {
127           "type": "string"
128         },
129         "url": {
130           "type": "string"
131         },
132         "businessKey": {
133           "type": "string"
134         },
135         "processDefinitionUrl": {
136           "type": "string"
137         },
138         "activityId": {
139           "type": "string"
140         }
141       }
142     },
143     "StartProcessRequest": {
144       "type": "object",
145       "properties": {
146         "processDefinitionId": {
147           "type": "string"
148         },
149         "businessKey": {
150           "type": "string"
151         },
152         "variables": {
153           "type": "object",
154           "additionalProperties": {
155             "type": "string"
156           }
157         }
158       }
159     }
160   }
161 }