summaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-09-09 19:27:04 +0530
committerArundathi Patil <arundpil@in.ibm.com>2019-09-09 19:27:10 +0530
commit7918513759a4a6fd5ae90640c6b654a1a61f46b8 (patch)
tree21b87087fd7df8c939eb5b7ebbcf1deac493c89f /cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts
parenta257847a16a8424a9612e14b4a2f09f3973c90ec (diff)
Resource Dictionary: fecthing data-type list
Created loopback API function to fetch data-types from backend and display them in data-type drop-down Issue-ID: CCSDK-707 Change-Id: I797177b9042558c99a94df9c9dd4295c43389d29 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts')
-rw-r--r--cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts17
1 files changed, 16 insertions, 1 deletions
diff --git a/cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts b/cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts
index af96aca04..9f9d754d1 100644
--- a/cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts
+++ b/cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts
@@ -88,7 +88,6 @@ export default {
}
},
- ,
{
"template": {
"method": "GET",
@@ -104,6 +103,22 @@ export default {
"getModelType": ["source"]
}
+ },
+ {
+ "template": {
+ "method": "GET",
+ "url": controllerApiConfig.http.url + "/model-type/by-definition/data_type",
+ "headers": {
+ "accepts": "application/json",
+ "content-type": "application/json",
+ "authorization": controllerApiConfig.http.authToken
+ },
+ "responsePath": "$.*"
+ },
+ "functions": {
+ "getDataTypes": []
+
+ }
}
]
}; \ No newline at end of file