summaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/controllers
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-07-19 13:55:50 +0000
committerGerrit Code Review <gerrit@onap.org>2019-07-19 13:55:50 +0000
commitfdbb1a7b9bf8159438f439bd0fae8a870a16c527 (patch)
tree8f1f4de1be8072692f682d5506e2b633c0ee6eeb /cds-ui/server/src/controllers
parentca17e0c71e738520a19cad7e0944177eaeb51c07 (diff)
parent3dd38ac3051a80adcbdb70cfb1c3550b6c507506 (diff)
Merge "loopback Api- get Sources list"
Diffstat (limited to 'cds-ui/server/src/controllers')
-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 486c28658..63587e6b3 100644
--- a/cds-ui/server/src/controllers/data-dictionary.controller.ts
+++ b/cds-ui/server/src/controllers/data-dictionary.controller.ts
@@ -84,4 +84,15 @@ export class DataDictionaryController {
}) resourceDictionaryList: JSON): Promise<any> {
return await this.rdservice.searchbyNames(resourceDictionaryList);
}
+
+ @get('/resourcedictionary/model-type/{source}', {
+ responses: {
+ '200': {
+ content: { 'application/json': {} },
+ },
+ },
+ })
+ async getmodelType(@param.path.string('source') source: string) {
+ return await this.rdservice.getModelType(source);
+ }
}