From f02b2da462b61c0aca5abe2a5dbada5823ce6fd9 Mon Sep 17 00:00:00 2001 From: sumanvpacewisdom Date: Wed, 17 Jan 2024 14:22:33 +0530 Subject: [PATCH] Permissions,Modules,UserRoles,RolePermissions Api --- elevate-mentoring/constants/routes.js | 108 ++++++++++++++++++++++++++ elevate-user/constants/routes.js | 40 ++++++++++ 2 files changed, 148 insertions(+) diff --git a/elevate-mentoring/constants/routes.js b/elevate-mentoring/constants/routes.js index 1899ca06..3cd1c3cd 100644 --- a/elevate-mentoring/constants/routes.js +++ b/elevate-mentoring/constants/routes.js @@ -1111,6 +1111,114 @@ module.exports = { type: 'POST', }, }, + { + sourceRoute: '/mentoring/v1/permissions/create', + type: 'POST', + priority: 'MUST_HAVE', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/mentoring/v1/permissions/create', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/permissions/update/:id', + type: 'POST', + priority: 'MUST_HAVE', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/mentoring/v1/permissions/update/:id', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/permissions/list', + type: 'GET', + priority: 'MUST_HAVE', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/mentoring/v1/permissions/list', + type: 'GET', + }, + }, + { + sourceRoute: '/mentoring/v1/permissions/delete/:id', + type: 'DELETE', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/mentoring/v1/permissions/delete/:id', + type: 'DELETE', + }, + }, + { + sourceRoute: '/mentoring/v1/modules/create', + type: 'POST', + priority: 'MUST_HAVE', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/mentoring/v1/modules/create', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/modules/update/:id', + type: 'POST', + priority: 'MUST_HAVE', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/mentoring/v1/modules/update/:id', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/modules/list', + type: 'GET', + priority: 'MUST_HAVE', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/mentoring/v1/modules/list', + type: 'GET', + }, + }, + { + sourceRoute: '/mentoring/v1/modules/delete/:id', + type: 'DELETE', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/mentoring/v1/modules/delete/:id', + type: 'DELETE', + }, + }, + { + sourceRoute: '/mentoring/v1/rolePermissionMapping/create/:role_id', + type: 'POST', + priority: 'MUST_HAVE', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/mentoring/v1/rolePermissionMapping/create/:role_id', + type: 'POST', + }, + }, + { + sourceRoute: '/mentoring/v1/rolePermissionMapping/delete/:role_id', + type: 'POST', + priority: 'MUST_HAVE', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/mentoring/v1/rolePermissionMapping/delete/:role_id', + type: 'POST', + }, + }, { sourceRoute: '/mentoring/v1/organization/update', type: 'PATCH', diff --git a/elevate-user/constants/routes.js b/elevate-user/constants/routes.js index 78f47dfe..59758e37 100644 --- a/elevate-user/constants/routes.js +++ b/elevate-user/constants/routes.js @@ -184,6 +184,46 @@ module.exports = { type: 'GET', }, }, + { + sourceRoute: '/user/v1/userRole/default', + type: 'GET', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/user/v1/userRole/default', + type: 'GET', + }, + }, + { + sourceRoute: '/user/v1/userRole/create', + type: 'POST', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/user/v1/userRole/create', + type: 'POST', + }, + }, + { + sourceRoute: '/user/v1/userRole/update/:id', + type: 'POST', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/user/v1/userRole/update/:id', + type: 'POST', + }, + }, + { + sourceRoute: '/user/v1/userRole/delete/:id', + type: 'DELETE', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/user/v1/userRole/delete/:id', + type: 'DELETE', + }, + }, { sourceRoute: '/user/v1/form/create', type: 'POST',