Add API to support 5G usecase in swagger 79/100079/3
authorHarry Huang <huangxiangyu5@huawei.com>
Wed, 8 Jan 2020 08:19:35 +0000 (16:19 +0800)
committerHarry Huang <huangxiangyu5@huawei.com>
Thu, 9 Jan 2020 06:29:36 +0000 (14:29 +0800)
Issue-ID: SO-2368

Change-Id: I659abc5e94eeb9ef08b89f0847c0cc577d8b0dca
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
docs/api/swagger.json

index 65d7ff0..6df1c21 100644 (file)
@@ -17,6 +17,9 @@
     {
       "name": "onapsoinfraorchestrationRequests"
     },
+    {
+      "name": "onapsoinfraorchestrationTasks"
+    },
     {
       "name": "onapsoinfraserviceInstantiation"
     },
         }
       }
     },
+    "/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": [
         }
       }
     },
+    "/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": [
       }
     }
   }
-}
\ No newline at end of file
+}