From 54865af76aedb77dc6abc560c095864094e6ad64 Mon Sep 17 00:00:00 2001 From: ShaabanEltanany Date: Wed, 4 Dec 2019 17:09:41 +0200 Subject: add service for getting model type with definition Issue-ID: CCSDK-1770 Signed-off-by: ShaabanEltanany Change-Id: I7f3278e97119a144c889d83891fa5de6796c7fb2 --- .../resource-dictionary.datasource-template.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'cds-ui/server/src/datasources') 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 f839bb225..7373d069e 100644 --- a/cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts +++ b/cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts @@ -118,7 +118,23 @@ export default { "functions": { "getDataTypes": [] + } + }, + { + "template": { + "method": "GET", + "url": processorApiConfig.http.url + "/model-type/by-definition/{type}", + "headers": { + "accepts": "application/json", + "content-type": "application/json", + "authorization": processorApiConfig.http.authToken + }, + "responsePath": "$.*" + }, + "functions": { + "getResourceDictionaryByType": ["type"] + } } ] -}; \ No newline at end of file +}; -- cgit 1.2.3-korg