summaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/controllers
diff options
context:
space:
mode:
authorBrinda Santh Muthuramalingam <brindasanth@in.ibm.com>2019-12-09 15:45:11 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-09 15:45:11 +0000
commit8c9d040846d93a99c88f6b7afba2ede1327bfa39 (patch)
treef160933e01b975e9e6a89c0f4476cc718b11d60a /cds-ui/server/src/controllers
parentdac9afbc6df66dfe3700b37f12b51bccebf74e83 (diff)
parent54865af76aedb77dc6abc560c095864094e6ad64 (diff)
Merge "add service for getting model type with definition"
Diffstat (limited to 'cds-ui/server/src/controllers')
-rw-r--r--cds-ui/server/src/controllers/data-dictionary.controller.ts16
1 files changed, 16 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 eab0bc50c..076d714c6 100644
--- a/cds-ui/server/src/controllers/data-dictionary.controller.ts
+++ b/cds-ui/server/src/controllers/data-dictionary.controller.ts
@@ -96,6 +96,9 @@ export class DataDictionaryController {
return await this.rdservice.getModelType(source);
}
+ /**
+ * @deprecated use getResourceDictionaryByType Instead.
+ */
@get('/resourcedictionary/model-type/by-definition/data_type', {
responses: {
'200': {
@@ -104,6 +107,19 @@ export class DataDictionaryController {
},
})
async getDataTypes() {
+ console.warn("Calling deprecated function!");
return await this.rdservice.getDataTypes();
}
+
+ @get('/resourcedictionary/model-type/by-definition/{type}', {
+ responses: {
+ '200': {
+ content: {'application/json': {}},
+ },
+ },
+ })
+ async getResourceDictionaryByType(@param.path.string('type') type: string) {
+ return await this.rdservice.getResourceDictionaryByType(type);
+ }
+
}