summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfengyuanxing <feng.yuanxing@zte.com.cn>2018-02-09 10:33:40 +0800
committerfengyuanxing <feng.yuanxing@zte.com.cn>2018-02-09 10:33:40 +0800
commitda5eb3925e05de10073b494476a28bff8ad0d8d5 (patch)
treefd5b02c894401f388191f4072032930c1d45c170
parent8852db8d760b005f4bda4018b2869bafab9fa811 (diff)
Add post job swagger
Change-Id: I2906e93b606a38a9df047f73319879546cf7a596 Issue-ID: VFC-750 Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
-rw-r--r--catalog/swagger/vfc.catalog.swagger.json48
1 files changed, 48 insertions, 0 deletions
diff --git a/catalog/swagger/vfc.catalog.swagger.json b/catalog/swagger/vfc.catalog.swagger.json
index 6f8cb769..926457bf 100644
--- a/catalog/swagger/vfc.catalog.swagger.json
+++ b/catalog/swagger/vfc.catalog.swagger.json
@@ -416,6 +416,40 @@
}
}
}
+ },
+ "post": {
+ "tags": [
+ "job"
+ ],
+ "summary": "Update Job Status",
+ "description": "",
+ "operationId": "post_jobstatus",
+ "parameters": [
+ {
+ "required": true,
+ "type": "string",
+ "description": "job Id",
+ "name": "jobId",
+ "in": "path"
+ },
+ {
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PostJobRequest"
+ },
+ "description": "job status",
+ "name": "responseId",
+ "in": "body"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "schema": {
+ "$ref": "#/definitions/JobDetailInfo"
+ }
+ }
+ }
}
}
},
@@ -712,6 +746,20 @@
}
}
},
+ "PostJobRequest": {
+ "type": "object",
+ "properties": {
+ "progress": {
+ "type": "string"
+ },
+ "desc": {
+ "type": "string"
+ },
+ "errcode": {
+ "type": "string"
+ }
+ }
+ },
"JobDetailInfo":{
"type": "object",
"properties": {