Fix VFC swagger bug
[vfc/nfvo/lcm.git] / lcm / swagger / vfc.nslcm.swagger.json
index 75cc6ba..528ec67 100644 (file)
       }\r
     },\r
     "/jobs/{jobId}": {\r
-      "post": {\r
+      "get": {\r
         "tags": [\r
           "job"\r
         ],\r
         "summary": "jobstatus",\r
         "description": "",\r
-        "operationId": "jobstatus",\r
+        "operationId": "get_jobstatus",\r
         "parameters": [\r
           {\r
             "required": true,\r
             "type": "string",\r
-            "description": "",\r
+            "description": "job Id",\r
             "name": "jobId",\r
             "in": "path"\r
           },\r
           {\r
-            "in": "body",\r
-            "name": "body",\r
-            "description": "request param",\r
             "required": true,\r
-            "schema": {\r
-              "$ref": "#/definitions/JobProgressRequest"\r
-            }\r
+            "type": "string",\r
+            "description": "job response message id",\r
+            "name": "responseId",\r
+            "in": "query"\r
           }\r
         ],\r
         "responses": {\r
           "202": {\r
-            "description": ""\r
+            "description": "",\r
+             "schema": {\r
+              "$ref": "#/definitions/JobDetailInfo"\r
+            }\r
           }\r
         }\r
       }\r
         }\r
       }\r
     },\r
-    "JobProgressRequest": {\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
+   \r
     "NsInfo": {\r
       "type": "object",\r
       "properties": {\r
           "type": "string"\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
 }
\ No newline at end of file