From 3dd38ac3051a80adcbdb70cfb1c3550b6c507506 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Wed, 17 Jul 2019 22:32:44 +0530 Subject: loopback Api- get Sources list Implemented api to fetch source list from backend Issue-ID: CCSDK-707 Change-Id: Ica7a3177f7a426456d921474a7758d2745eae33f Signed-off-by: Arundathi Patil --- cds-ui/server/src/controllers/data-dictionary.controller.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cds-ui/server/src/controllers') 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 { 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); + } } -- cgit 1.2.3-korg