summaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/controllers/data-dictionary.controller.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/controllers/data-dictionary.controller.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/controllers/data-dictionary.controller.ts')
-rw-r--r--cds-ui/server/src/controllers/data-dictionary.controller.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/cds-ui/server/src/controllers/data-dictionary.controller.ts b/cds-ui/server/src/controllers/data-dictionary.controller.ts
index 63587e6b3..eab0bc50c 100644
--- a/cds-ui/server/src/controllers/data-dictionary.controller.ts
+++ b/cds-ui/server/src/controllers/data-dictionary.controller.ts
@@ -95,4 +95,15 @@ export class DataDictionaryController {
async getmodelType(@param.path.string('source') source: string) {
return await this.rdservice.getModelType(source);
}
+
+ @get('/resourcedictionary/model-type/by-definition/data_type', {
+ responses: {
+ '200': {
+ content: { 'application/json': {} },
+ },
+ },
+ })
+ async getDataTypes() {
+ return await this.rdservice.getDataTypes();
+ }
}