Add serviceCatalog rest services
[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].instanceName",
40            "resourceInvariantUUID": "resourceSpecification[&1].resourceInvariantUUID",
41            "resourceType": "resourceSpecification[&1].resourceType"
42          }
43
44        }
45
46
47
48      }
49   },
50   {
51     "operation": "modify-overwrite-beta",
52     "spec": {
53       "href": "=concat('serviceSpecification/',@(1,id))"
54     }
55   },
56     {
57     "operation": "default",
58     "spec": {
59       "@type": "ONAPservice",
60       "attachment[]" : {
61         "*": {
62           "@type": "ONAPartifact"
63         }
64
65       },
66       "relatedParty" : {
67           "role": "lastUpdater"
68       },
69       "resourceSpecification[]" : {
70         "*": {
71           "@type": "ONAPresource"
72         }
73
74       }
75     }
76   }
77 ]