summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-11-14 16:44:48 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-11-14 16:46:27 +0800
commitdbbb41554934907c5756aebc0f81a6f572305010 (patch)
treec2a0c43cf77eaabd7b3986625684992c68787d47
parentd80c338f4274caa2d93be5b8a8cacb21ecf34687 (diff)
Add job get api swagger
Change-Id: Icf323c5bdb0246b3d288ab1305dc96a9b2b8aebd Issue-Id: VFC-592 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--catalog/swagger/vfc.catalog.swagger.json92
1 files changed, 90 insertions, 2 deletions
diff --git a/catalog/swagger/vfc.catalog.swagger.json b/catalog/swagger/vfc.catalog.swagger.json
index 6a3c3e13..ad3dc6b0 100644
--- a/catalog/swagger/vfc.catalog.swagger.json
+++ b/catalog/swagger/vfc.catalog.swagger.json
@@ -383,7 +383,41 @@
}
}
}
- }
+ },
+ "/jobs/{jobId}": {
+ "get": {
+ "tags": [
+ "job"
+ ],
+ "summary": "jobstatus",
+ "description": "",
+ "operationId": "get_jobstatus",
+ "parameters": [
+ {
+ "required": true,
+ "type": "string",
+ "description": "job Id",
+ "name": "jobId",
+ "in": "path"
+ },
+ {
+ "required": true,
+ "type": "string",
+ "description": "job response message id",
+ "name": "responseId",
+ "in": "query"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "",
+ "schema": {
+ "$ref": "#/definitions/JobDetailInfo"
+ }
+ }
+ }
+ }
+ }
},
"definitions": {
"NsPkgDistributeRequest": {
@@ -637,7 +671,61 @@
"description": "csar model json data"
}
}
+ },
+ "jobResponseInfo": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string"
+ },
+ "progress":{
+ "type": "string"
+ },
+ "statusDescription": {
+ "type": "string"
+ },
+ "errorCode": {
+ "type": "string"
+ },
+ "responseId": {
+ "type": "string"
+ }
+ }
+ },
+ "JobDetailInfo":{
+ "type": "object",
+ "properties": {
+ "jobId": {
+ "type": "string"
+ },
+ "responseDescriptor":
+ {
+ "type":"object",
+ "properties": {
+ "status": {
+ "type": "string"
+ },
+ "progress":{
+ "type": "string"
+ },
+ "statusDescription": {
+ "type": "string"
+ },
+ "errorCode": {
+ "type": "string"
+ },
+ "responseId": {
+ "type": "string"
+ },
+ "responseHistoryList": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/jobResponseInfo"
+ }
+ }
+ }
+ }
+ }
}
-
}
} \ No newline at end of file