Transformation of request/response payloads for SDC Integration for POST /serviceSpec...
[externalapi/nbi.git] / src / main / resources / jolt / postServiceCatalog.json
diff --git a/src/main/resources/jolt/postServiceCatalog.json b/src/main/resources/jolt/postServiceCatalog.json
new file mode 100644 (file)
index 0000000..4cd51c3
--- /dev/null
@@ -0,0 +1,75 @@
+[
+  {
+    "operation": "shift",
+    "spec": {
+      "name": "name",
+      "description": "description",
+      "toscaModelURL": "toscaModelURL",
+      "toscaResourceName": "toscaResourceName",
+      "category": "categories[].name",
+      "version": "version",
+      "lifecycleStatus": "lifecycleState",
+      "serviceSpecCharacteristic": {
+        "*": {
+          "name": "properties[&1].name",
+          "description": "properties[&1].description",
+          "valueType": "properties[&1].type",
+          "required": "properties[&1].required",
+          "serviceSpecCharacteristicValue": {
+            "*": {
+              "value": "properties[&3].value",
+              "isDefault": {
+                "true": {
+                  "@(2,value)": "properties[&5].defaultValue"
+                }
+              }
+            }
+          }
+        }
+      },
+      "attachment": {
+        "*": {
+          "id": "artifacts[&1].artifactUUID",
+          "name": "artifacts[&1].artifactName",
+          "description": "artifacts[&1].artifactDescription",
+          "artifactLabel": "artifacts[&1].artifactLabel",
+          "artifactGroupType": "artifacts[&1].artifactGroupType",
+          "artifactTimeout": "artifacts[&1].artifactTimeout",
+          "artifactChecksum": "artifacts[&1].artifactChecksum",
+          "artifactVersion": "artifacts[&1].artifactVersion",
+          "generatedFromUUID": "artifacts[&1].generatedFromUUID",
+          "url": "artifacts[&1].artifactURL",
+          "mimeType": "artifacts[&1].artifactType"
+        }
+      },
+      "relatedParty": {
+        "*": {
+          "id": ["contactId", "lastUpdaterUserId"],
+          "name": "lastUpdaterFullName"
+        }
+      },
+      "resourceSpecification": {
+        "*": {
+          "id": "resources[&1].resourceUUID",
+          "version": "resources[&1].resourceVersion",
+          "name": "resources[&1].resourceName",
+          "resourceInstanceName": "resources[&1].resourceInstanceName",
+          "resourceInvariantUUID": "resources[&1].resourceInvariantUUID",
+          "resoucreType": "resources[&1].resourceType"
+        }
+      }
+    }
+  },
+  {
+    "operation": "default",
+    "spec": {
+      "@type": "ONAPservicespec",
+      "distributionStatus": "DISTRIBUTION_NOT_APPROVED",
+      "categories": {
+        "*": {
+          "name": ""
+        }
+      }
+    }
+  }
+]
\ No newline at end of file