Add post job swagger 57/30957/1
authorfengyuanxing <feng.yuanxing@zte.com.cn>
Fri, 9 Feb 2018 02:33:40 +0000 (10:33 +0800)
committerfengyuanxing <feng.yuanxing@zte.com.cn>
Fri, 9 Feb 2018 02:33:40 +0000 (10:33 +0800)
Change-Id: I2906e93b606a38a9df047f73319879546cf7a596
Issue-ID: VFC-750
Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
catalog/swagger/vfc.catalog.swagger.json

index 6f8cb76..926457b 100644 (file)
             }\r
           }\r
         }\r
+      },\r
+       "post": {\r
+        "tags": [\r
+          "job"\r
+        ],\r
+        "summary": "Update Job Status",\r
+        "description": "",\r
+        "operationId": "post_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
+            "schema": {\r
+              "$ref": "#/definitions/PostJobRequest"\r
+            },\r
+            "description": "job status",\r
+            "name": "responseId",\r
+            "in": "body"\r
+          }\r
+        ],\r
+        "responses": {\r
+          "200": {\r
+            "description": "",\r
+             "schema": {\r
+              "$ref": "#/definitions/JobDetailInfo"\r
+            }\r
+          }\r
+        }\r
       }\r
     }\r
   },\r
         }\r
        }\r
     },\r
+    "PostJobRequest": {\r
+      "type": "object",\r
+      "properties": {\r
+        "progress": {\r
+          "type": "string"\r
+        },\r
+        "desc": {\r
+          "type": "string"\r
+        },\r
+        "errcode": {\r
+          "type": "string"\r
+        }\r
+      }\r
+    },\r
     "JobDetailInfo":{\r
       "type": "object",\r
       "properties": {\r