From 968d39b471e002edfe975fcc4d79fc857213e3b4 Mon Sep 17 00:00:00 2001
From: praveenKDass <praveendass@shikshalokam.org>
Date: Thu, 18 Jul 2024 01:31:49 +0530
Subject: [PATCH 1/2] solutions and programs url added

---
 elevate-survey/constants/routes.js | 240 +++++++++++++++++++++++++++++
 1 file changed, 240 insertions(+)

diff --git a/elevate-survey/constants/routes.js b/elevate-survey/constants/routes.js
index ca1da2fb..dc974db6 100644
--- a/elevate-survey/constants/routes.js
+++ b/elevate-survey/constants/routes.js
@@ -10,6 +10,16 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/admin/createIndex/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/admin/createIndex/:id',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/polls/create',
 			type: 'POST',
@@ -70,6 +80,236 @@ module.exports = {
 				type: 'GET'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/create',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/create',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/details/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/details/:id',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/verifyLink/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/verifyLink/:id',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/fetchLink/:id',
+			type: 'GET',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/fetchLink/:id',
+				type: 'GET'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/update/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/update/:id',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/getDetails/:id',
+			type: 'GET',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/getDetails/:id',
+				type: 'GET'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/list',
+			type: 'GET',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/list',
+				type: 'GET'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/isTargetedBasedOnUserProfile/:id',
+			type: 'GET',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/isTargetedBasedOnUserProfile/:id',
+				type: 'GET'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/detailsBasedOnRoleAndLocation/:id',
+			type: 'GET',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/detailsBasedOnRoleAndLocation/:id',
+				type: 'GET'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/forUserRoleAndLocation',
+			type: 'GET',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/forUserRoleAndLocation',
+				type: 'GET'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/addEntitiesInScope/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/addEntitiesInScope/:id',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/addRolesInScope/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/addRolesInScope/:id',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/removeEntitiesInScope/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/removeEntitiesInScope/:id',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/removeRolesInScope/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/removeRolesInScope/:id',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/programs/addEntitiesInScope/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/addEntitiesInScope/:id',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/programs/addRolesInScope/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/addRolesInScope/:id',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/programs/removeEntitiesInScope/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/removeEntitiesInScope/:id',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/programs/removeRolesInScope/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/removeRolesInScope/:id',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/programs/join/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/join/:id',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/programs/create',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/create',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/programs/update/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/update/:id',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/programs/details/:id',
+			type: 'GET',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/details/:id',
+				type: 'GET'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/programs/list',
+			type: 'GET',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/list',
+				type: 'GET'
+			},
+		},
 	],
 }
 

From 86aafb79bfae0e3158d59d1726f809ef1ef63be0 Mon Sep 17 00:00:00 2001
From: praveenKDass <praveendass@shikshalokam.org>
Date: Thu, 18 Jul 2024 16:19:07 +0530
Subject: [PATCH 2/2] changes:handled api routes with params

---
 elevate-survey/constants/routes.js | 196 +++++++++++++++++++++++++++--
 1 file changed, 188 insertions(+), 8 deletions(-)

diff --git a/elevate-survey/constants/routes.js b/elevate-survey/constants/routes.js
index dc974db6..d49b8ff7 100644
--- a/elevate-survey/constants/routes.js
+++ b/elevate-survey/constants/routes.js
@@ -100,6 +100,26 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/details',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/details',
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/verifyLink',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/verifyLink',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/solutions/verifyLink/:id',
 			type: 'POST',
@@ -110,6 +130,16 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/fetchLink',
+			type: 'GET',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/fetchLink',
+				type: 'GET'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/solutions/fetchLink/:id',
 			type: 'GET',
@@ -120,6 +150,16 @@ module.exports = {
 				type: 'GET'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/update',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/update',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/solutions/update/:id',
 			type: 'POST',
@@ -130,14 +170,24 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/getDetails',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/getDetails',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/solutions/getDetails/:id',
-			type: 'GET',
+			type: 'POST',
 			inSequence: false,
 			orchestrated: false,
 			targetRoute: {
 				path: '/samiksha/v1/solutions/getDetails/:id',
-				type: 'GET'
+				type: 'POST'
 			},
 		},
 		{
@@ -150,34 +200,64 @@ module.exports = {
 				type: 'GET'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/isTargetedBasedOnUserProfile',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/isTargetedBasedOnUserProfile',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/solutions/isTargetedBasedOnUserProfile/:id',
-			type: 'GET',
+			type: 'POST',
 			inSequence: false,
 			orchestrated: false,
 			targetRoute: {
 				path: '/samiksha/v1/solutions/isTargetedBasedOnUserProfile/:id',
-				type: 'GET'
+				type: 'POST'
 			},
 		},
 		{
 			sourceRoute: '/samiksha/v1/solutions/detailsBasedOnRoleAndLocation/:id',
-			type: 'GET',
+			type: 'POST',
 			inSequence: false,
 			orchestrated: false,
 			targetRoute: {
 				path: '/samiksha/v1/solutions/detailsBasedOnRoleAndLocation/:id',
-				type: 'GET'
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/detailsBasedOnRoleAndLocation/:id',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/detailsBasedOnRoleAndLocation/:id',
+				type: 'POST'
 			},
 		},
 		{
 			sourceRoute: '/samiksha/v1/solutions/forUserRoleAndLocation',
-			type: 'GET',
+			type: 'POST',
 			inSequence: false,
 			orchestrated: false,
 			targetRoute: {
 				path: '/samiksha/v1/solutions/forUserRoleAndLocation',
-				type: 'GET'
+				type: 'POST'
+			},
+		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/addEntitiesInScope',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/addEntitiesInScope',
+				type: 'POST'
 			},
 		},
 		{
@@ -190,6 +270,16 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/addRolesInScope',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/addRolesInScope',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/solutions/addRolesInScope/:id',
 			type: 'POST',
@@ -200,6 +290,16 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/removeEntitiesInScope',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/removeEntitiesInScope',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/solutions/removeEntitiesInScope/:id',
 			type: 'POST',
@@ -210,6 +310,16 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/solutions/removeRolesInScope',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/solutions/removeRolesInScope',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/solutions/removeRolesInScope/:id',
 			type: 'POST',
@@ -220,6 +330,16 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/programs/addEntitiesInScope',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/addEntitiesInScope',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/programs/addEntitiesInScope/:id',
 			type: 'POST',
@@ -230,6 +350,16 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/programs/addRolesInScope',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/addRolesInScope',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/programs/addRolesInScope/:id',
 			type: 'POST',
@@ -240,6 +370,16 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/programs/removeEntitiesInScope',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/removeEntitiesInScope',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/programs/removeEntitiesInScope/:id',
 			type: 'POST',
@@ -250,6 +390,16 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/programs/removeRolesInScope',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/removeRolesInScope',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/programs/removeRolesInScope/:id',
 			type: 'POST',
@@ -260,6 +410,16 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/programs/join',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/join',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/programs/join/:id',
 			type: 'POST',
@@ -280,6 +440,16 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/programs/update',
+			type: 'POST',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/update',
+				type: 'POST'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/programs/update/:id',
 			type: 'POST',
@@ -290,6 +460,16 @@ module.exports = {
 				type: 'POST'
 			},
 		},
+		{
+			sourceRoute: '/samiksha/v1/programs/details',
+			type: 'GET',
+			inSequence: false,
+			orchestrated: false,
+			targetRoute: {
+				path: '/samiksha/v1/programs/details',
+				type: 'GET'
+			},
+		},
 		{
 			sourceRoute: '/samiksha/v1/programs/details/:id',
 			type: 'GET',
