summaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/controllers/data-dictionary.controller.ts
diff options
context:
space:
mode:
authorBrinda Santh Muthuramalingam <brindasanth@in.ibm.com>2019-09-10 00:26:08 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-10 00:26:08 +0000
commit85f7fb219f6e1f4227ac1463290f6a6aafc2b84f (patch)
tree5ad10124076ce5fd5210075dd20046a3b7d78031 /cds-ui/server/src/controllers/data-dictionary.controller.ts
parent98a00a5e3fac8b2ea7a23b8265fb5d70a8b9d35f (diff)
parent7918513759a4a6fd5ae90640c6b654a1a61f46b8 (diff)
Merge "Resource Dictionary: fecthing data-type list"
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();
+ }
}