From 4e4b7ee2641173512b26d211aa8cddb2eed93080 Mon Sep 17 00:00:00 2001 From: nevil Date: Mon, 17 Feb 2025 15:42:29 +0530 Subject: [PATCH] added: report apis --- elevate-mentoring/constants/routes.js | 199 +++++++++++++++++++++++--- 1 file changed, 181 insertions(+), 18 deletions(-) diff --git a/elevate-mentoring/constants/routes.js b/elevate-mentoring/constants/routes.js index 11a9c8d2..7d8a0d83 100644 --- a/elevate-mentoring/constants/routes.js +++ b/elevate-mentoring/constants/routes.js @@ -867,7 +867,7 @@ module.exports = { type: 'POST', inSequence: false, orchestrated: true, - service: "mentoring", + service: 'mentoring', targetRoute: { service: 'mentoring', path: '/mentoring/v1/profile/create', @@ -880,7 +880,7 @@ module.exports = { type: 'POST', inSequence: false, orchestrated: true, - service: "mentoring", + service: 'mentoring', targetRoute: { service: 'mentoring', path: '/mentoring/v1/profile/update/', @@ -917,7 +917,7 @@ module.exports = { type: 'POST', inSequence: true, orchestrated: true, - service: "mentoring", + service: 'mentoring', targetRoute: { path: '/mentoring/v1/role-permission-mapping/list', type: 'POST', @@ -2757,12 +2757,11 @@ module.exports = { }, }, { - sourceRoute: '/interface/v1/mentors/details/:id', type: 'POST', inSequence: true, orchestrated: true, - service: "mentoring", + service: 'mentoring', targetRoute: { path: '/mentoring/v1/mentors/details/:id', type: 'POST', @@ -2774,7 +2773,7 @@ module.exports = { type: 'GET', inSequence: true, orchestrated: true, - service: "mentoring", + service: 'mentoring', targetRoute: { path: '/mentoring/v1/profile/read', type: 'GET', @@ -2786,11 +2785,11 @@ module.exports = { type: 'POST', inSequence: true, orchestrated: true, - service: "user", + service: 'user', targetRoute: { path: '/user/v1/user/read', type: 'GET', - functionName: 'getUserDetailsFromExternal', + functionName: 'getUserDetailsFromExternal', }, }, { @@ -2798,7 +2797,7 @@ module.exports = { type: 'GET', inSequence: true, orchestrated: true, - service: "user", + service: 'user', targetRoute: { path: '/user/v1/user/read', type: 'GET', @@ -2806,12 +2805,11 @@ module.exports = { }, }, { - sourceRoute: '/interface/v1/profile/details/:id', type: 'POST', inSequence: true, orchestrated: true, - service: "mentoring", + service: 'mentoring', targetRoute: { path: '/mentoring/v1/mentors/details/:id', type: 'POST', @@ -2819,12 +2817,11 @@ module.exports = { }, }, { - sourceRoute: '/interface/v1/profile/details/:id', type: 'POST', inSequence: true, orchestrated: true, - service: "mentoring", + service: 'mentoring', targetRoute: { path: '/mentoring/v1/mentors/details/:id', type: 'POST', @@ -2832,12 +2829,11 @@ module.exports = { }, }, { - sourceRoute: '/interface/v1/profile/get/:id', type: 'POST', inSequence: true, orchestrated: true, - service: "mentoring", + service: 'mentoring', targetRoute: { path: '/mentoring/v1/profile/details/:id', type: 'POST', @@ -2845,17 +2841,184 @@ module.exports = { }, }, { - sourceRoute: '/interface/v1/profile/get/:id', type: 'POST', inSequence: true, orchestrated: true, - service: "user", + service: 'user', targetRoute: { path: '/user/v1/user/read', type: 'POST', functionName: 'getUserDetailsFromExternal', }, - } + }, + { + sourceRoute: '/mentoring/v1/reports/reportData', + type: 'POST', + targetRoute: { + path: '/mentoring/v1/reports/reportData ', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/reports/create', + type: 'POST', + targetRoute: { + path: '/mentoring/v1/reports/create', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/reports/read', + type: 'GET', + targetRoute: { + path: '/mentoring/v1/reports/read', + type: 'GET', + }, + }, + { + sourceRoute: '/mentoring/v1/reports/update', + type: 'POST', + targetRoute: { + path: '/mentoring/v1/reports/update', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/reports/delete', + type: 'DELETE', + targetRoute: { + path: '/mentoring/v1/reports/delete', + type: 'DELETE', + }, + }, + { + sourceRoute: '/mentoring/v1/report-type/create', + type: 'POST', + targetRoute: { + path: '/mentoring/v1/report-type/create', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/report-type/read', + type: 'GET', + targetRoute: { + path: '/mentoring/v1/report-type/read', + type: 'GET', + }, + }, + { + sourceRoute: '/mentoring/v1/report-type/update', + type: 'POST', + targetRoute: { + path: '/mentoring/v1/report-type/update', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/report-type/delete', + type: 'DELETE', + targetRoute: { + path: '/mentoring/v1/report-type/delete', + type: 'DELETE', + }, + }, + { + sourceRoute: '/mentoring/v1/report-mapping/create', + type: 'POST', + targetRoute: { + path: '/mentoring/v1/report-mapping/create', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/report-mapping/read', + type: 'GET', + targetRoute: { + path: '/mentoring/v1/report-mapping/read', + type: 'GET', + }, + }, + { + sourceRoute: '/mentoring/v1/report-mapping/update', + type: 'POST', + targetRoute: { + path: '/mentoring/v1/report-mapping/update', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/report-mapping/delete', + type: 'DELETE', + targetRoute: { + path: '/mentoring/v1/report-mapping/delete', + type: 'DELETE', + }, + }, + { + sourceRoute: '/mentoring/v1/report-queries/create', + type: 'POST', + targetRoute: { + path: '/mentoring/v1/report-queries/create', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/report-queries/read', + type: 'GET', + targetRoute: { + path: '/mentoring/v1/report-queries/read', + type: 'GET', + }, + }, + { + sourceRoute: '/mentoring/v1/report-queries/update', + type: 'POST', + targetRoute: { + path: '/mentoring/v1/report-queries/update', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/report-queries/delete', + type: 'DELETE', + targetRoute: { + path: '/mentoring/v1/report-queries/delete', + type: 'DELETE', + }, + }, + { + sourceRoute: '/mentoring/v1/role-extension/create', + type: 'POST', + targetRoute: { + path: '/mentoring/v1/role-extension/create', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/role-extension/read', + type: 'GET', + targetRoute: { + path: '/mentoring/v1/role-extension/read', + type: 'GET', + }, + }, + { + sourceRoute: '/mentoring/v1/role-extension/update', + type: 'POST', + targetRoute: { + path: '/mentoring/v1/role-extension/update', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/role-extensions/delete', + type: 'DELETE', + targetRoute: { + path: '/mentoring/v1/role-extension/delete', + type: 'DELETE', + }, + }, ], }