diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2019-07-17 22:32:44 +0530 |
---|---|---|
committer | Arundathi Patil <arundpil@in.ibm.com> | 2019-07-17 22:32:55 +0530 |
commit | 3dd38ac3051a80adcbdb70cfb1c3550b6c507506 (patch) | |
tree | 791c2a6ad83dadfcf6dd9a23133063f5cf175fc1 /cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts | |
parent | d5a3cb572ca9d83820e8d93feefb92de992cc044 (diff) |
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 <arundpil@in.ibm.com>
Diffstat (limited to 'cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts')
-rw-r--r-- | cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts b/cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts index c749eee62..af96aca04 100644 --- a/cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts +++ b/cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts @@ -87,6 +87,23 @@ export default { "searchbyNames": ["resourceDictionaryList"] } + }, + , + { + "template": { + "method": "GET", + "url": controllerApiConfig.http.url + "/model-type/{source}", + "headers": { + "accepts": "application/json", + "content-type": "application/json", + "authorization": controllerApiConfig.http.authToken + }, + "responsePath": "$.*" + }, + "functions": { + "getModelType": ["source"] + + } } ] };
\ No newline at end of file |