summaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/datasources/blueprint.datasource-template.ts
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-05-13 12:52:44 +0000
committerGerrit Code Review <gerrit@onap.org>2019-05-13 12:52:44 +0000
commit425e1b49c18f4caebea2af79849e81c5aefb34b3 (patch)
tree97be7f9445d962f80ae23737693f3f0039ae4ce6 /cds-ui/server/src/datasources/blueprint.datasource-template.ts
parent7bace3db55c2ca51431e88191cc7a8587d7aa508 (diff)
parent087d4b667a9c5517ac7d014c2bbdad994b927147 (diff)
Merge "Modify CDS-UI server to allow communicating with external blueprint mS"
Diffstat (limited to 'cds-ui/server/src/datasources/blueprint.datasource-template.ts')
-rw-r--r--cds-ui/server/src/datasources/blueprint.datasource-template.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/cds-ui/server/src/datasources/blueprint.datasource-template.ts b/cds-ui/server/src/datasources/blueprint.datasource-template.ts
new file mode 100644
index 000000000..3cbf09576
--- /dev/null
+++ b/cds-ui/server/src/datasources/blueprint.datasource-template.ts
@@ -0,0 +1,24 @@
+import {controllerApiConfig} from '../../config/app-config';
+
+export default {
+ "name": "blueprint",
+ "connector": "rest",
+ "baseURL": controllerApiConfig.url,
+ "crud": false,
+ "operations": [{
+ "template": {
+ "method": "GET",
+ "url": controllerApiConfig.url + "/blueprint-model/",
+ "headers": {
+ "accepts": "application/json",
+ "content-type": "application/json",
+ "authorization": controllerApiConfig.authToken
+ },
+ "responsePath": "$.*"
+ },
+ "functions": {
+ "getAllblueprints": []
+
+ }
+ }]
+}; \ No newline at end of file