Update serviceOrder swagger with clarifications on serviceState 23/110723/2
authorPriyadharshini <priyadharshini.b96@wipro.com>
Thu, 30 Jul 2020 08:30:16 +0000 (14:00 +0530)
committerPriyadharshini <priyadharshini.b96@wipro.com>
Thu, 30 Jul 2020 08:40:45 +0000 (14:10 +0530)
Issue-ID: EXTAPI-485
Signed-off-by: Priyadharshini <priyadharshini.b96@wipro.com>
Change-Id: I966626bec4910af0f8f8ef141c8326b69587d8d4

docs/offeredapis/api_serviceOrder/swagger.json
docs/offeredapis/api_serviceOrder/swagger.yaml

index d5d1c1e..2db9989 100644 (file)
         "ServiceOrderItemStateChangeNotification"
       ]
     },
+       "ServiceState": {
+         "description": "The lifecycle state of the service requested - Required for E2E service activation and deactivation with ServiceOrderItem.action as 'modify'.For any other service modification request,service state value should not be passed.Lifecycle is not fully managed in Guilin release",
+         "type": "string",
+         "enum": [
+               "active",
+               "inactive"
+         ]
+       },
     "SeverityMessage": {
       "description": "Message Severity, either information or error",
       "type": "string",
           "type": "string"
         },
         "serviceState": {
-          "description": "The lifecycle state of the service requested;\nNot managed in Beijing release.",
-          "type": "string"
+          "$ref": "#/definitions/ServiceState"
         },
         "@type": {
           "description": "To define the service type\nNot managed in Beijing Release",
index 43e4ba6..d6bf029 100644 (file)
@@ -1,4 +1,5 @@
 #    Copyright (c) 2018 Orange
+#    Copyright (c) 2020 Wipro Limited
 # 
 #    Licensed under the Apache License, Version 2.0 (the "License");
 #    you may not use this file except in compliance with the License.
@@ -355,6 +356,12 @@ definitions:
       - ServiceOrderCreationNotification
       - ServiceOrderStateChangeNotification
       - ServiceOrderItemStateChangeNotification
+  ServiceState:
+    description: The lifecycle state of the service requested - Required for E2E service activation and deactivation with ServiceOrderItem.action as 'modify'.For any other service modification request,service state value should not be passed.Lifecycle is not fully managed in Guilin release
+    type: string
+    enum:
+      - active
+      - inactive
   SeverityMessage:
     description: 'Message Severity, either information or error'
     type: string
@@ -521,10 +528,7 @@ definitions:
           used in ONAP/SO request as InstaceName.
         type: string
       serviceState:
-        description: |-
-          The lifecycle state of the service requested;
-          Not managed in Beijing release.
-        type: string
+        $ref: '#/definitions/ServiceState'
       '@type':
         description: |-
           To define the service type