Add API to support 5G usecase in swagger

Issue-ID: SO-2368

Change-Id: I659abc5e94eeb9ef08b89f0847c0cc577d8b0dca
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
diff --git a/docs/api/swagger.json b/docs/api/swagger.json
index 65d7ff0..6df1c21 100644
--- a/docs/api/swagger.json
+++ b/docs/api/swagger.json
@@ -18,6 +18,9 @@
       "name": "onapsoinfraorchestrationRequests"
     },
     {
+      "name": "onapsoinfraorchestrationTasks"
+    },
+    {
       "name": "onapsoinfraserviceInstantiation"
     },
     {
@@ -161,6 +164,46 @@
         }
       }
     },
+    "/e2eServiceInstances/{version}/{serviceId}/operations/{operationType}": {
+      "get": {
+        "tags": [
+          "e2eServiceInstances"
+        ],
+        "summary": "Activate/Deactivate e2eServiceInstances Requests for a given serviceId",
+        "description": "",
+        "operationId": "activateE2EServiceInstances",
+        "produces": [
+          "application/json"
+        ],
+        "parameters": [
+          {
+            "name": "serviceId",
+            "in": "path",
+            "required": true,
+            "type": "string"
+          },
+          {
+            "name": "version",
+            "in": "path",
+            "required": true,
+            "type": "string",
+            "pattern": "[vV][3-5]"
+          },
+          {
+            "name": "operationType",
+            "in": "path",
+            "required": true,
+            "type": "string",
+            "pattern": "activate/deactivate"
+          }
+        ],
+        "responses": {
+          "default": {
+            "description": "successful operation"
+          }
+        }
+      }
+    },
     "/e2eServiceInstances/{version}/{serviceId}/operations/{operationId}": {
       "get": {
         "tags": [
@@ -438,6 +481,258 @@
         }
       }
     },
+    "/onap/so/infra/orchestrationTasks/{version}": {
+      "get": {
+        "tags": [
+          "onapsoinfraorchestrationTasks"
+        ],
+        "summary": "Get all orchestrationTasks",
+        "description": "",
+        "operationId": "getAllOrchestrationTasks",
+        "produces": [
+          "application/json"
+        ],
+        "parameters": [
+          {
+            "name": "version",
+            "in": "path",
+            "required": true,
+            "type": "string",
+            "pattern": "[vV][4-7]"
+          }
+        ],
+        "responses": {
+          "default": {
+            "description": "successful operation"
+          }
+        }
+      }
+    },
+    "/onap/so/infra/orchestrationTasks/{version}/{taskId}": {
+      "get": {
+        "tags": [
+          "onapsoinfraorchestrationTasks"
+        ],
+        "summary": "Get orchestrationTask for a given taskId",
+        "description": "",
+        "operationId": "getOrchestrationTask",
+        "produces": [
+          "application/json"
+        ],
+        "parameters": [
+          {
+            "name": "taskId",
+            "in": "path",
+            "required": true,
+            "type": "string",
+          },
+          {
+            "name": "version",
+            "in": "path",
+            "required": true,
+            "type": "string",
+            "pattern": "[vV][4-7]"
+          }
+        ],
+        "responses": {
+          "default": {
+            "description": "successful operation"
+          }
+        }
+      }
+    },
+    "/onap/so/infra/orchestrationTasks/{version}": {
+      "post": {
+        "tags": [
+          "onapsoinfraorchestrationTasks"
+        ],
+        "summary": "Create an orchestrationTask",
+        "description": "",
+        "operationId": "createOrchestrationTask",
+        "produces": [
+          "application/json"
+        ],
+        "parameters": [
+          {
+            "name": "version",
+            "in": "path",
+            "required": true,
+            "type": "string",
+            "pattern": "[vV][4-7]"
+          }
+        ],
+        "responses": {
+          "default": {
+            "description": "successful operation"
+          }
+        }
+      }
+    },
+    "/onap/so/infra/orchestrationTasks/{version}/{taskId}": {
+      "put": {
+        "tags": [
+          "onapsoinfraorchestrationTasks"
+        ],
+        "summary": "update orchestrationTask for a given taskId",
+        "description": "",
+        "operationId": "updateOrchestrationTask",
+        "produces": [
+          "application/json"
+        ],
+        "parameters": [
+          {
+            "name": "taskId",
+            "in": "path",
+            "required": true,
+            "type": "string",
+          },
+          {
+            "name": "version",
+            "in": "path",
+            "required": true,
+            "type": "string",
+            "pattern": "[vV][4-7]"
+          }
+        ],
+        "responses": {
+          "default": {
+            "description": "successful operation"
+          }
+        }
+      }
+    },
+    "/onap/so/infra/orchestrationTasks/{version}/{taskId}": {
+      "delete": {
+        "tags": [
+          "onapsoinfraorchestrationTasks"
+        ],
+        "summary": "delete orchestrationTask for a given taskId",
+        "description": "",
+        "operationId": "deleteOrchestrationTask",
+        "produces": [
+          "application/json"
+        ],
+        "parameters": [
+          {
+            "name": "taskId",
+            "in": "path",
+            "required": true,
+            "type": "string",
+          },
+          {
+            "name": "version",
+            "in": "path",
+            "required": true,
+            "type": "string",
+            "pattern": "[vV][4-7]"
+          }
+        ],
+        "responses": {
+          "default": {
+            "description": "successful operation"
+          }
+        }
+      }
+    },
+    "/onap/so/infra/orchestrationTasks/{version}/{taskId}": {
+      "delete": {
+        "tags": [
+          "onapsoinfraorchestrationTasks"
+        ],
+        "summary": "delete orchestrationTask for a given taskId",
+        "description": "",
+        "operationId": "deleteOrchestrationTask",
+        "produces": [
+          "application/json"
+        ],
+        "parameters": [
+          {
+            "name": "taskId",
+            "in": "path",
+            "required": true,
+            "type": "string",
+          },
+          {
+            "name": "version",
+            "in": "path",
+            "required": true,
+            "type": "string",
+            "pattern": "[vV][4-7]"
+          }
+        ],
+        "responses": {
+          "default": {
+            "description": "successful operation"
+          }
+        }
+      }
+    },
+    "/onap/so/infra/orchestrationTasks/{version}/{taskId}/commit": {
+      "post": {
+        "tags": [
+          "onapsoinfraorchestrationTasks"
+        ],
+        "summary": "commit orchestrationTask for a given taskId",
+        "description": "",
+        "operationId": "commitOrchestrationTask",
+        "produces": [
+          "application/json"
+        ],
+        "parameters": [
+          {
+            "name": "taskId",
+            "in": "path",
+            "required": true,
+            "type": "string",
+          },
+          {
+            "name": "version",
+            "in": "path",
+            "required": true,
+            "type": "string",
+            "pattern": "[vV][4-7]"
+          }
+        ],
+        "responses": {
+          "default": {
+            "description": "successful operation"
+          }
+        }
+      }
+    },
+    "/onap/so/infra/orchestrationTasks/{version}/{taskId}/abort": {
+      "post": {
+        "tags": [
+          "onapsoinfraorchestrationTasks"
+        ],
+        "summary": "abort orchestrationTask for a given taskId",
+        "description": "",
+        "operationId": "abortOrchestrationTask",
+        "produces": [
+          "application/json"
+        ],
+        "parameters": [
+          {
+            "name": "taskId",
+            "in": "path",
+            "required": true,
+            "type": "string",
+          },
+          {
+            "name": "version",
+            "in": "path",
+            "required": true,
+            "type": "string",
+            "pattern": "[vV][4-7]"
+          }
+        ],
+        "responses": {
+          "default": {
+            "description": "successful operation"
+          }
+        }
+      }
+    },
     "/onap/so/infra/serviceInstantiation/{version}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/{vfmoduleInstanceId}/deactivateAndCloudDelete": {
       "post": {
         "tags": [
@@ -2299,4 +2594,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}