aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/controllers/data-dictionary.controller.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cds-ui/server/src/controllers/data-dictionary.controller.ts')
-rw-r--r--cds-ui/server/src/controllers/data-dictionary.controller.ts11
1 files changed, 11 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 63587e6b3..eab0bc50c 100644
--- a/cds-ui/server/src/controllers/data-dictionary.controller.ts
+++ b/cds-ui/server/src/controllers/data-dictionary.controller.ts
@@ -95,4 +95,15 @@ export class DataDictionaryController {
async getmodelType(@param.path.string('source') source: string) {
return await this.rdservice.getModelType(source);
}
+
+ @get('/resourcedictionary/model-type/by-definition/data_type', {
+ responses: {
+ '200': {
+ content: { 'application/json': {} },
+ },
+ },
+ })
+ async getDataTypes() {
+ return await this.rdservice.getDataTypes();
+ }
}