aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/datasources
diff options
context:
space:
mode:
authorShaabanEltanany <shaaban.eltanany.ext@orange.com>2019-12-04 17:09:41 +0200
committerKAPIL SINGAL <ks220y@att.com>2019-12-06 19:40:21 +0000
commit54865af76aedb77dc6abc560c095864094e6ad64 (patch)
tree0eb4b3d4981160f5f8df349b5b55acd85989b111 /cds-ui/server/src/datasources
parentea84b36447601d0d6a633ae708b72c6aaae6dc67 (diff)
add service for getting model type with definition
Issue-ID: CCSDK-1770 Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com> Change-Id: I7f3278e97119a144c889d83891fa5de6796c7fb2
Diffstat (limited to 'cds-ui/server/src/datasources')
-rw-r--r--cds-ui/server/src/datasources/resource-dictionary.datasource-template.ts18
1 files changed, 17 insertions, 1 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 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
@@ -119,6 +119,22 @@ export default {
"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
+};