From 227657ed80de59d1978d2bae491b36565e2e6483 Mon Sep 17 00:00:00 2001 From: sahilchaudhary Date: Thu, 22 Feb 2024 11:22:23 +0530 Subject: [PATCH 1/3] Adding contentV4 changes --- .gitmodules | 2 +- src/config/contentProviderApiConfig.json | 3 ++- src/libs | 2 +- src/service/contentService.js | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitmodules b/.gitmodules index 235d3812..e4c68ec5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "src/libs"] path = src/libs - url = https://github.com/project-sunbird/sunbird-js-utils + url = https://github.com/sunbird-cb/sunbird-js-utils diff --git a/src/config/contentProviderApiConfig.json b/src/config/contentProviderApiConfig.json index 7e785d0c..1d07ec80 100644 --- a/src/config/contentProviderApiConfig.json +++ b/src/config/contentProviderApiConfig.json @@ -2,7 +2,8 @@ "API": { "CREATE_CONTENT_URI": "/content/v3/create", "SEARCH_CONTENT_URI": "/content/v3/search", - "SEARCH_URI": "/v4/search", + "SEARCH_URI": "/v3/search", + "SEARCH_URI_V4": "/v4/search", "UPDATE_CONTENT_URI": "/content/v3/update", "GET_CONTENT_URI": "/content/v3/read", "REVIEW_CONTENT_URI": "/content/v3/review", diff --git a/src/libs b/src/libs index b0580d51..20860447 160000 --- a/src/libs +++ b/src/libs @@ -1 +1 @@ -Subproject commit b0580d51839a64f96addd9036f4209afef6e4215 +Subproject commit 20860447af2ec26779189f86b9d375cd52fcf5a8 diff --git a/src/service/contentService.js b/src/service/contentService.js index fea24e7a..9dd0170e 100644 --- a/src/service/contentService.js +++ b/src/service/contentService.js @@ -965,7 +965,7 @@ function retireContentAPI (req, response) { } } } - contentProvider.compositeSearch(ekStepReqData, req.headers, function (err, res) { + contentProvider.compositeSearchV4(ekStepReqData, req.headers, function (err, res) { if (err || res.responseCode !== responseCode.SUCCESS) { rspObj.errCode = res && res.params ? res.params.err : contentMessage.SEARCH.FAILED_CODE rspObj.errMsg = res && res.params ? res.params.errmsg : contentMessage.SEARCH.FAILED_MESSAGE From de352f4bbc3a93ee5f76ef0b7e89e56e45a09a8a Mon Sep 17 00:00:00 2001 From: sahilchaudhary Date: Thu, 22 Feb 2024 12:08:06 +0530 Subject: [PATCH 2/3] Updating libs --- src/libs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs b/src/libs index 20860447..ecddabcb 160000 --- a/src/libs +++ b/src/libs @@ -1 +1 @@ -Subproject commit 20860447af2ec26779189f86b9d375cd52fcf5a8 +Subproject commit ecddabcb367d6469206b1bd3548a5eaec8d45e24 From 124f0e42b1f50995926554a8f68413d55f822fa4 Mon Sep 17 00:00:00 2001 From: sahilchaudhary Date: Thu, 22 Feb 2024 12:30:35 +0530 Subject: [PATCH 3/3] Updaing Libs with routes --- src/libs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs b/src/libs index ecddabcb..6df14e66 160000 --- a/src/libs +++ b/src/libs @@ -1 +1 @@ -Subproject commit ecddabcb367d6469206b1bd3548a5eaec8d45e24 +Subproject commit 6df14e662e7d814c1a2973f0945433b4bf3961aa