Add job get api swagger 39/23439/2
authorfujinhua <fu.jinhua@zte.com.cn>
Tue, 14 Nov 2017 08:44:48 +0000 (16:44 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Tue, 14 Nov 2017 08:46:27 +0000 (16:46 +0800)
Change-Id: Icf323c5bdb0246b3d288ab1305dc96a9b2b8aebd
Issue-Id: VFC-592
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
catalog/swagger/vfc.catalog.swagger.json

index 6a3c3e1..ad3dc6b 100644 (file)
           }\r
         }\r
       }\r
-     }\r
+     },\r
+     "/jobs/{jobId}": {\r
+       "get": {\r
+        "tags": [\r
+          "job"\r
+        ],\r
+        "summary": "jobstatus",\r
+        "description": "",\r
+        "operationId": "get_jobstatus",\r
+        "parameters": [\r
+          {\r
+            "required": true,\r
+            "type": "string",\r
+            "description": "job Id",\r
+            "name": "jobId",\r
+            "in": "path"\r
+          },\r
+          {\r
+            "required": true,\r
+            "type": "string",\r
+            "description": "job response message id",\r
+            "name": "responseId",\r
+            "in": "query"\r
+          }\r
+        ],\r
+        "responses": {\r
+          "202": {\r
+            "description": "",\r
+             "schema": {\r
+              "$ref": "#/definitions/JobDetailInfo"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    }\r
   },\r
   "definitions": {\r
     "NsPkgDistributeRequest": {\r
           "description": "csar model json data"\r
         }\r
       }\r
+    },\r
+    "jobResponseInfo": {\r
+       "type": "object",\r
+       "properties": {\r
+          "status": {\r
+            "type": "string"\r
+          },\r
+         "progress":{\r
+            "type": "string"\r
+         },\r
+         "statusDescription": {\r
+            "type": "string"\r
+         },\r
+         "errorCode": {\r
+            "type": "string"\r
+         },\r
+         "responseId": {\r
+            "type": "string"\r
+        }\r
+       }\r
+    },\r
+    "JobDetailInfo":{\r
+      "type": "object",\r
+      "properties": {\r
+            "jobId": {\r
+               "type": "string"\r
+             },\r
+            "responseDescriptor":\r
+            {\r
+                "type":"object",\r
+                "properties": {\r
+                    "status": {\r
+                       "type": "string"\r
+                    },\r
+                    "progress":{\r
+                       "type": "string"\r
+                    },\r
+                    "statusDescription": {\r
+                       "type": "string"\r
+                    },\r
+                    "errorCode": {\r
+                       "type": "string"\r
+                    },\r
+                    "responseId": {\r
+                       "type": "string"\r
+                    },\r
+                    "responseHistoryList": {\r
+                        "type": "array",\r
+                        "items": {\r
+                           "$ref": "#/definitions/jobResponseInfo"\r
+                        }\r
+                    }\r
+                }\r
+           }\r
+      }\r
     }\r
-\r
   }\r
 }
\ No newline at end of file