aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-edit.service.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/client/src/app/feature-modules/resource-definition/resource-edit/resource-edit.service.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/client/src/app/feature-modules/resource-definition/resource-edit/resource-edit.service.ts')
-rw-r--r--cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-edit.service.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-edit.service.ts b/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-edit.service.ts
index ed1ef6f37..f66a1c9c9 100644
--- a/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-edit.service.ts
+++ b/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-edit.service.ts
@@ -44,4 +44,8 @@ export class ResourceEditService {
getModelType(name) {
return this.api.get(ResourceDictionaryURLs.getModelType + '/' + name);
}
+
+ getDataTypes() {
+ return this.api.get(ResourceDictionaryURLs.getDataType);
+ }
} \ No newline at end of file