rollback EXTAPI-108 call tosca
[externalapi/nbi.git] / src / main / resources / jolt / getServiceCatalog.json
1 [
2   {
3     "operation": "shift",
4      "spec": {
5       "uuid": "id",
6       "name": "name",
7       "description": "description",
8       "invariantUUID": "invariantUUID",
9       "toscaModelURL": "toscaModelURL",
10       "toscaResourceName": "toscaResourceName",
11       "category ": "category",
12       "subcategory": "subcategory",
13       "distributionStatus": "distributionStatus",
14       "version": "version",
15       "lifecycleState":"lifecycleStatus" ,
16       "artifacts" : {
17           "*": {
18             "artifactUUID": "attachment[&1].id",
19             "artifactName": "attachment[&1].name",
20             "artifactDescription": "attachment[&1].description",
21             "artifactLabel": "attachment[&1].artifactLabel",
22             "artifactGroupType": "attachment[&1].artifactGroupType",
23             "artifactTimeout": "attachment[&1].artifactTimeout",
24             "artifactChecksum": "attachment[&1].artifactChecksum",
25             "artifactVersion": "attachment[&1].artifactVersion",
26             "generatedFromUUID": "attachment[&1].generatedFromUUID",
27             "artifactURL": "attachment[&1].url",
28             "artifactType": "attachment[&1].mimeType"
29           }
30
31       },
32        "lastUpdaterUserId" : "relatedParty.id",
33        "lastUpdaterFullName" : "relatedParty.name",
34        "resources" : {
35          "*": {
36            "resourceUUID": "resourceSpecification[&1].id",
37            "resourceVersion": "resourceSpecification[&1].version",
38            "resourceName": "resourceSpecification[&1].name",
39            "resourceInstanceName": ["resourceSpecification[&1].resourceInstanceName","resourceSpecification[&1].modelCustomizationName"],
40            "resourceInvariantUUID": "resourceSpecification[&1].resourceInvariantUUID",
41            "resoucreType": "resourceSpecification[&1].resourceType"
42
43          }
44
45        }
46      }
47   },
48   {
49     "operation": "modify-overwrite-beta",
50     "spec": {
51       "href": "=concat('serviceSpecification/',@(1,id))"
52     }
53   },
54     {
55     "operation": "default",
56     "spec": {
57       "@type": "ONAPservice",
58       "attachment[]" : {
59         "*": {
60           "@type": "ONAPartifact"
61         }
62
63       },
64       "relatedParty" : {
65           "role": "lastUpdater"
66       },
67       "resourceSpecification[]" : {
68         "*": {
69           "@type": "ONAPresource"
70         }
71
72       }
73     }
74   }
75 ]