diff options
author | Dan Timoney <dtimoney@att.com> | 2019-07-19 13:55:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-19 13:55:50 +0000 |
commit | fdbb1a7b9bf8159438f439bd0fae8a870a16c527 (patch) | |
tree | 8f1f4de1be8072692f682d5506e2b633c0ee6eeb /cds-ui/server/src/controllers | |
parent | ca17e0c71e738520a19cad7e0944177eaeb51c07 (diff) | |
parent | 3dd38ac3051a80adcbdb70cfb1c3550b6c507506 (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.ts | 11 |
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); + } } |