diff --git a/.github/job.js b/.github/job.js
index c18913a..4903c3c 100644
--- a/.github/job.js
+++ b/.github/job.js
@@ -29,10 +29,7 @@ const getUserNameFromCodeBaseFile = (fileName) => {
// function to connect to mongodb using mongoose
const connectMongoDB = () => {
- mongoose.connect(process.env.MONGODB_URI, {
- useNewUrlParser: true,
- useUnifiedTopology: true,
- })
+ mongoose.connect(process.env.MONGODB_URI)
const db = mongoose.connection
db.on('error', console.error.bind(console, 'Connection error:'))
return db
@@ -58,13 +55,13 @@ const insertDataInMongo = (records) => {
const callGithubCodeBaseAPI = () => {
axios
.get(
- `https://api.github.com/repos/TECHOUS/${process.env.CODE_SRC}/contents/CodeBase`
+ `https://api.github.com/repos/TECHOUS/${process.env.CODE_SRC}/contents/CodeBase`,
)
.then((res) => {
// get all the names from the files
const filePromises = res.data.map((codeObject) => {
return getUserNameFromCodeBaseFile(
- `${process.env.CODE_SRC}/${codeObject.path}`
+ `${process.env.CODE_SRC}/${codeObject.path}`,
)
})
@@ -77,7 +74,7 @@ const callGithubCodeBaseAPI = () => {
fileObject.value.fileName,
fileObject.value.username,
]
- })
+ }),
)
const dataToInsert = res.data.map((data) => {
diff --git a/.github/workflows/Vercel Deployment.yml b/.github/workflows/Vercel Deployment.yml
index 9d9b7c0..d2c486b 100644
--- a/.github/workflows/Vercel Deployment.yml
+++ b/.github/workflows/Vercel Deployment.yml
@@ -10,10 +10,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-node@v2
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
with:
- node-version: '18.x'
+ node-version: '20.x'
- run: yarn install
- run: yarn run test
env:
@@ -25,8 +25,8 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: amondnet/vercel-action@v20
+ - uses: actions/checkout@v4
+ - uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-args: '--prod' #Optional
diff --git a/.github/workflows/Vercel Dev Deployment.yml b/.github/workflows/Vercel Dev Deployment.yml
index 97c5154..7044174 100644
--- a/.github/workflows/Vercel Dev Deployment.yml
+++ b/.github/workflows/Vercel Dev Deployment.yml
@@ -10,10 +10,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-node@v2
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
with:
- node-version: '18.x'
+ node-version: '20.x'
- run: yarn install
- run: yarn run test
env:
@@ -25,8 +25,8 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: amondnet/vercel-action@v20
+ - uses: actions/checkout@v4
+ - uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-org-id: ${{ secrets.ORG_ID}} #Required
diff --git a/.github/workflows/codebase-engine.yml b/.github/workflows/codebase-engine.yml
index c6343b9..793edf7 100644
--- a/.github/workflows/codebase-engine.yml
+++ b/.github/workflows/codebase-engine.yml
@@ -6,10 +6,10 @@ jobs:
init-setup:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-node@v2
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
with:
- node-version: '18.x'
+ node-version: '20.x'
- run: yarn install
- run: bash .github/job.sh
env:
diff --git a/api/public/assets/main.bundle.js b/api/public/assets/main.bundle.js
index 6e1a32d..4aefea8 100644
--- a/api/public/assets/main.bundle.js
+++ b/api/public/assets/main.bundle.js
@@ -125,7 +125,9 @@ function print() { __p += __j.call(arguments, '') }
},
"status": 200,
"message": "Code Ratings are updated"
-}`,type:"json"}]},error:{fields:{"4xx Error Response":[{group:"4xx Error Response",type:"Number",optional:!1,field:"429",isArray:!1,description:"
Too many requests, please try again later!!!
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"405",isArray:!1,description:"Method not Allowed
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"401",isArray:!1,description:"Invalid Token !! Please send the valid token
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"400",isArray:!1,description:"Bad Request
"}],"500 Error Response":[{group:"500 Error Response",type:"Number",optional:!1,field:"500",isArray:!1,description:"Internal Server Error
"}]}},filename:"API.js",groupTitle:"rateCode"},{type:"GET",url:"/api/v1/searchUser",title:"GET: searching the user name",name:"searchUser",description:"search and return the code rating for the specific user
",version:"1.0.0",body:[{group:"Body",type:"String",optional:!1,field:"codeRatingEngineToken",isArray:!1,description:"Access token received from randomCodes request
"}],query:[{group:"Query",type:"String",optional:!1,field:"username",isArray:!1,description:"Username to search
"},{group:"Query",type:"Boolean",optional:!1,field:"sendContent",isArray:!1,description:"Whether content is needed from the API or not
"}],group:"searchUser",success:{fields:{"200 Success Response":[{group:"200 Success Response",type:"Number",optional:!1,field:"status",isArray:!1,description:"200 (Status Code)
"},{group:"200 Success Response",type:"Array",optional:!1,field:"userCodeBaseFiles",isArray:!1,description:"CodeBaseFile
"}],CodeBaseFile:[{group:"CodeBaseFile",type:"String",optional:!1,field:"_id",isArray:!1,description:"unique mongo Id
"},{group:"CodeBaseFile",type:"String",optional:!1,field:"codeId",isArray:!1,description:"unique code Id
"},{group:"CodeBaseFile",type:"Number",optional:!1,field:"codeRating",isArray:!1,description:"current code rating of the file
"},{group:"CodeBaseFile",type:"String",optional:!1,field:"codeUrl",isArray:!1,description:"file URL of the code file
"},{group:"CodeBaseFile",type:"String",optional:!1,field:"codeName",isArray:!1,description:"file name of the code file
"},{group:"CodeBaseFile",type:"String",optional:!1,field:"userName",isArray:!1,description:"user name of the contributed user
"},{group:"CodeBaseFile",type:"String",optional:!1,field:"content",isArray:!1,description:"content of the code file
"}]},examples:[{title:"Success Response Example",content:`
+}`,type:"json"}]},error:{fields:{"4xx Error Response":[{group:"4xx Error Response",type:"Number",optional:!1,field:"429",isArray:!1,description:"Too many requests, please try again later!!!
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"405",isArray:!1,description:"Method not Allowed
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"401",isArray:!1,description:"Invalid Token !! Please send the valid token
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"400",isArray:!1,description:"Bad Request
"}],"500 Error Response":[{group:"500 Error Response",type:"Number",optional:!1,field:"500",isArray:!1,description:"Internal Server Error
"}]}},filename:"API.js",groupTitle:"rateCode"},{type:"GET",url:"/api/v1/searchUser",title:"GET: searching the user name",name:"searchUser",description:"search and return the code rating for the specific user
",version:"1.0.0",header:{fields:{Header:[{group:"Header",type:"String",optional:!1,field:"authorization",isArray:!1,description:"Access token received from randomCodes request
"}]},examples:[{title:"Request Header example",content:`{
+ "Authorization": "Bearer "
+}`,type:"json"}]},query:[{group:"Query",type:"String",optional:!1,field:"username",isArray:!1,description:"Username to search
"},{group:"Query",type:"Boolean",optional:!1,field:"sendContent",isArray:!1,description:"Whether content is needed from the API or not
"}],group:"searchUser",success:{fields:{"200 Success Response":[{group:"200 Success Response",type:"Number",optional:!1,field:"status",isArray:!1,description:"200 (Status Code)
"},{group:"200 Success Response",type:"Array",optional:!1,field:"userCodeBaseFiles",isArray:!1,description:"CodeBaseFile
"}],CodeBaseFile:[{group:"CodeBaseFile",type:"String",optional:!1,field:"_id",isArray:!1,description:"unique mongo Id
"},{group:"CodeBaseFile",type:"String",optional:!1,field:"codeId",isArray:!1,description:"unique code Id
"},{group:"CodeBaseFile",type:"Number",optional:!1,field:"codeRating",isArray:!1,description:"current code rating of the file
"},{group:"CodeBaseFile",type:"String",optional:!1,field:"codeUrl",isArray:!1,description:"file URL of the code file
"},{group:"CodeBaseFile",type:"String",optional:!1,field:"codeName",isArray:!1,description:"file name of the code file
"},{group:"CodeBaseFile",type:"String",optional:!1,field:"userName",isArray:!1,description:"user name of the contributed user
"},{group:"CodeBaseFile",type:"String",optional:!1,field:"content",isArray:!1,description:"content of the code file
"}]},examples:[{title:"Success Response Example",content:`
{
"status": 200,
"userCodeBaseFiles": [
@@ -140,4 +142,4 @@ function print() { __p += __j.call(arguments, '') }
"content": "Scanner in = new Scanner(System.in)"
}
]
-}`,type:"json"}]},error:{fields:{"4xx Error Response":[{group:"4xx Error Response",type:"Number",optional:!1,field:"429",isArray:!1,description:"Too many requests, please try again later!!!
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"405",isArray:!1,description:"Method not Allowed
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"404",isArray:!1,description:"No Code Base file found for the respective user
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"401",isArray:!1,description:"Invalid Token !! Please send the valid token
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"400",isArray:!1,description:"Bad Request
"}],"500 Error Response":[{group:"500 Error Response",type:"Number",optional:!1,field:"500",isArray:!1,description:"Internal Server Error
"}]}},filename:"API.js",groupTitle:"searchUser"}];const pe={name:"Code Rating Engine",version:"1.0.0",description:"Engine to handle the rating mechanisms for the clean code",title:"Code Rating Engine",url:"https://coderatingengine-techous.vercel.app",sampleUrl:!1,defaultVersion:"0.0.0",apidoc:"0.3.0",generator:{name:"apidoc",time:"Sun Oct 15 2023 09:01:15 GMT+0530 (India Standard Time)",url:"https://apidocjs.com",version:"1.2.0"}};dt();const Pe=u().compile(g()("#template-header").html()),Te=u().compile(g()("#template-footer").html()),q=u().compile(g()("#template-article").html()),me=u().compile(g()("#template-compare-article").html()),de=u().compile(g()("#template-generator").html()),ve=u().compile(g()("#template-project").html()),Me=u().compile(g()("#template-sections").html()),He=u().compile(g()("#template-sidenav").html()),Ue={aloneDisplay:!1,showRequiredLabels:!1,withGenerator:!0,withCompare:!0};pe.template=Object.assign(Ue,(Ke=pe.template)!=null?Ke:{}),pe.template.forceLanguage&&At(pe.template.forceLanguage);const Ye=(0,s.groupBy)(Le,re=>re.group),et={};g().each(Ye,(re,ne)=>{et[re]=(0,s.groupBy)(ne,le=>le.name)});const at=[];g().each(et,(re,ne)=>{let le=[];g().each(ne,(ae,De)=>{const $e=De[0].title;$e&&le.push($e.toLowerCase()+"#~#"+ae)}),le.sort(),pe.order&&(le=Ie(le,pe.order,"#~#")),le.forEach(ae=>{const $e=ae.split("#~#")[1];ne[$e].forEach(Ne=>{at.push(Ne)})})}),Le=at;let gt={};const Bt={};let Ot={};Ot[pe.version]=1,g().each(Le,(re,ne)=>{gt[ne.group]=1,Bt[ne.group]=ne.groupTitle||ne.group,Ot[ne.version]=1}),gt=Object.keys(gt),gt.sort(),pe.order&&(gt=we(Bt,pe.order)),Ot=Object.keys(Ot),Ot.sort(r().compare),Ot.reverse();const Tt=[];gt.forEach(re=>{Tt.push({group:re,isHeader:!0,title:Bt[re]});let ne="";Le.forEach(le=>{le.group===re&&(ne!==le.name?Tt.push({title:le.title,group:re,name:le.name,type:le.type,version:le.version,url:le.url}):Tt.push({title:le.title,group:re,hidden:!0,name:le.name,type:le.type,version:le.version,url:le.url}),ne=le.name)})});function hn(re,ne,le){let ae=!1;if(!ne)return ae;const De=ne.match(/(.+?)<\/h(1|2)>/gi);return De&&De.forEach(function($e){const Ne=$e.substring(2,3),lt=$e.replace(/<.+?>/g,""),xt=$e.match(/id="api-([^-]+)(?:-(.+))?"/),Pt=xt?xt[1]:null,vt=xt?xt[2]:null;Ne==="1"&<&&Pt&&(re.splice(le,0,{group:Pt,isHeader:!0,title:lt,isFixed:!0}),le++,ae=!0),Ne==="2"&<&&Pt&&vt&&(re.splice(le,0,{group:Pt,name:vt,isHeader:!1,title:lt,isFixed:!1,version:"1.0"}),le++)}),ae}let pn;if(pe.header&&(pn=hn(Tt,pe.header.content,0),pn||Tt.unshift({group:"_header",isHeader:!0,title:pe.header.title==null?yt("General"):pe.header.title,isFixed:!0})),pe.footer){const re=Tt.length;pn=hn(Tt,pe.footer.content,Tt.length),!pn&&pe.footer.title!=null&&Tt.splice(re,0,{group:"_footer",isHeader:!0,title:pe.footer.title,isFixed:!0})}const Tn=pe.title?pe.title:"apiDoc: "+pe.name+" - "+pe.version;g()(document).attr("title",Tn),g()("#loader").remove();const Mn={nav:Tt};g()("#sidenav").append(He(Mn)),g()("#generator").append(de(pe)),(0,s.extend)(pe,{versions:Ot}),g()("#project").append(ve(pe)),pe.header&&g()("#header").append(Pe(pe.header)),pe.footer&&(g()("#footer").append(Te(pe.footer)),pe.template.aloneDisplay&&document.getElementById("api-_footer").classList.add("hide"));const $t={};let Bn="";gt.forEach(function(re){const ne=[];let le="",ae={},De=re,$e="";$t[re]={},Le.forEach(function(Ne){re===Ne.group&&(le!==Ne.name?(Le.forEach(function(lt){re===lt.group&&Ne.name===lt.name&&(Object.prototype.hasOwnProperty.call($t[Ne.group],Ne.name)||($t[Ne.group][Ne.name]=[]),$t[Ne.group][Ne.name].push(lt.version))}),ae={article:Ne,versions:$t[Ne.group][Ne.name]}):ae={article:Ne,hidden:!0,versions:$t[Ne.group][Ne.name]},pe.sampleUrl&&pe.sampleUrl===!0&&(pe.sampleUrl=window.location.origin),pe.url&&ae.article.url.substr(0,4).toLowerCase()!=="http"&&(ae.article.url=pe.url+ae.article.url),se(ae,Ne),Ne.groupTitle&&(De=Ne.groupTitle),Ne.groupDescription&&($e=Ne.groupDescription),ne.push({article:q(ae),group:Ne.group,name:Ne.name,aloneDisplay:pe.template.aloneDisplay}),le=Ne.name)}),ae={group:re,title:De,description:$e,articles:ne,aloneDisplay:pe.template.aloneDisplay},Bn+=Me(ae)}),g()("#sections").append(Bn),pe.template.aloneDisplay||(document.body.dataset.spy="scroll",g()("body").scrollspy({target:"#scrollingNav"})),g()(".form-control").on("focus change",function(){g()(this).removeClass("border-danger")}),g()(".sidenav").find("a").on("click",function(re){re.preventDefault();const ne=this.getAttribute("href");if(pe.template.aloneDisplay){const le=document.querySelector(".sidenav > li.active");le&&le.classList.remove("active"),this.parentNode.classList.add("active")}else{const le=document.querySelector(ne);le&&g()("html,body").animate({scrollTop:le.offsetTop},400)}window.location.hash=ne});function St(re){let ne=!1;return g().each(re,le=>{ne=ne||(0,s.some)(re[le],ae=>ae.type)}),ne}function $n(){g()('button[data-toggle="popover"]').popover().click(function(ne){ne.preventDefault()});const re=g()("#version strong").html();if(g()("#sidenav li").removeClass("is-new"),pe.template.withCompare&&g()("#sidenav li[data-version='"+re+"']").each(function(){const ne=g()(this).data("group"),le=g()(this).data("name"),ae=g()("#sidenav li[data-group='"+ne+"'][data-name='"+le+"']").length,De=g()("#sidenav li[data-group='"+ne+"'][data-name='"+le+"']").index(g()(this));(ae===1||De===ae-1)&&g()(this).addClass("is-new")}),g()(".nav-tabs-examples a").click(function(ne){ne.preventDefault(),g()(this).tab("show")}),g()(".nav-tabs-examples").find("a:first").tab("show"),g()(".sample-request-content-type-switch").change(function(){g()(this).val()==="body-form-data"?(g()("#sample-request-body-json-input-"+g()(this).data("id")).hide(),g()("#sample-request-body-form-input-"+g()(this).data("id")).show()):(g()("#sample-request-body-form-input-"+g()(this).data("id")).hide(),g()("#sample-request-body-json-input-"+g()(this).data("id")).show())}),pe.template.aloneDisplay&&(g()(".show-group").click(function(){const ne="."+g()(this).attr("data-group")+"-group",le="."+g()(this).attr("data-group")+"-article";g()(".show-api-group").addClass("hide"),g()(ne).removeClass("hide"),g()(".show-api-article").addClass("hide"),g()(le).removeClass("hide")}),g()(".show-api").click(function(){const ne=this.getAttribute("href").substring(1),le=document.getElementById("version").textContent.trim(),ae=`.${this.dataset.name}-article`,De=`[id="${ne}-${le}"]`,$e=`.${this.dataset.group}-group`;g()(".show-api-group").addClass("hide"),g()($e).removeClass("hide"),g()(".show-api-article").addClass("hide");let Ne=g()(ae);g()(De).length&&(Ne=g()(De).parent()),Ne.removeClass("hide"),ne.match(/_(header|footer)/)&&document.getElementById(ne).classList.remove("hide")})),pe.template.aloneDisplay||g()("body").scrollspy("refresh"),pe.template.aloneDisplay){const ne=decodeURI(window.location.hash);if(ne!=null&&ne.length!==0){const le=document.getElementById("version").textContent.trim(),ae=document.querySelector(`li .${ne.slice(1)}-init`),De=document.querySelector(`li[data-version="${le}"] .show-api.${ne.slice(1)}-init`);let $e=ae;De&&($e=De),$e.click()}}}function U(re){typeof re=="undefined"?re=g()("#version strong").html():g()("#version strong").html(re),g()("article").addClass("hide"),g()("#sidenav li:not(.nav-fixed)").addClass("hide");const ne={};document.querySelectorAll("article[data-version]").forEach(le=>{const ae=le.dataset.group,De=le.dataset.name,$e=le.dataset.version,Ne=ae+De;!ne[Ne]&&r().lte($e,re)&&(ne[Ne]=!0,document.querySelector(`article[data-group="${ae}"][data-name="${De}"][data-version="${$e}"]`).classList.remove("hide"),document.querySelector(`#sidenav li[data-group="${ae}"][data-name="${De}"][data-version="${$e}"]`).classList.remove("hide"),document.querySelector(`#sidenav li.nav-header[data-group="${ae}"]`).classList.remove("hide"))}),g()("article[data-version]").each(function(le){const ae=g()(this).data("group");g()("section#api-"+ae).removeClass("hide"),g()("section#api-"+ae+" article:visible").length===0?g()("section#api-"+ae).addClass("hide"):g()("section#api-"+ae).removeClass("hide")})}if(U(),g()("#versions li.version a").on("click",function(re){re.preventDefault(),U(g()(this).html())}),g()("#compareAllWithPredecessor").on("click",ee),g()("article .versions li.version a").on("click",Q),g().urlParam=function(re){const ne=new RegExp("[\\?&]"+re+"=([^&#]*)").exec(window.location.href);return ne&&ne[1]?ne[1]:null},g().urlParam("compare")&&g()("#compareAllWithPredecessor").trigger("click"),window.location.hash){const re=decodeURI(window.location.hash);g()(re).length>0&&g()("html,body").animate({scrollTop:parseInt(g()(re).offset().top)},0)}document.querySelector('[data-toggle="offcanvas"]').addEventListener("click",function(){const re=document.querySelector(".row-offcanvas");re&&re.classList.toggle("active")}),g()("#scrollingNav .sidenav-search input.search").focus(),g()('[data-action="filter-search"]').on("keyup",V(re=>{const ne=re.currentTarget.value.toLowerCase();g()(".sidenav a.nav-list-item").filter((le,ae)=>g()(ae).toggle(g()(ae).text().toLowerCase().indexOf(ne)>-1))},200)),g()("span.search-reset").on("click",function(){g()("#scrollingNav .sidenav-search input.search").val("").focus(),g()(".sidenav").find("a.nav-list-item").show()});function V(re,ne){let le=null;return(...ae)=>{clearTimeout(le),le=setTimeout(re.bind(this,...ae),ne||0)}}function Q(re){re.preventDefault();const ne=g()(this).parents("article"),le=g()(this).html(),ae=ne.find(".version"),De=ae.find("strong").html();ae.find("strong").html(le);const $e=ne.data("group"),Ne=ne.data("name"),lt=ne.data("version"),xt=ne.data("compare-version");if(xt!==le&&!(!xt&<===le)){if(xt&&$t[$e][Ne][0]===le||lt===le)Ce($e,Ne,lt);else{let Pt={},vt={};g().each(et[$e][Ne],function(ar,Vn){Vn.version===lt&&(Pt=Vn),Vn.version===le&&(vt=Vn)});const st={article:Pt,compare:vt,versions:$t[$e][Ne]};st.article.id=st.article.group+"-"+st.article.name+"-"+st.article.version,st.article.id=st.article.id.replace(/\./g,"_"),st.compare.id=st.compare.group+"-"+st.compare.name+"-"+st.compare.version,st.compare.id=st.compare.id.replace(/\./g,"_");let nt=Pt;nt.header&&nt.header.fields&&(st._hasTypeInHeaderFields=St(nt.header.fields)),nt.parameter&&nt.parameter.fields&&(st._hasTypeInParameterFields=St(nt.parameter.fields)),nt.error&&nt.error.fields&&(st._hasTypeInErrorFields=St(nt.error.fields)),nt.success&&nt.success.fields&&(st._hasTypeInSuccessFields=St(nt.success.fields)),nt.info&&nt.info.fields&&(st._hasTypeInInfoFields=St(nt.info.fields)),nt=vt,st._hasTypeInHeaderFields!==!0&&nt.header&&nt.header.fields&&(st._hasTypeInHeaderFields=St(nt.header.fields)),st._hasTypeInParameterFields!==!0&&nt.parameter&&nt.parameter.fields&&(st._hasTypeInParameterFields=St(nt.parameter.fields)),st._hasTypeInErrorFields!==!0&&nt.error&&nt.error.fields&&(st._hasTypeInErrorFields=St(nt.error.fields)),st._hasTypeInSuccessFields!==!0&&nt.success&&nt.success.fields&&(st._hasTypeInSuccessFields=St(nt.success.fields)),st._hasTypeInInfoFields!==!0&&nt.info&&nt.info.fields&&(st._hasTypeInInfoFields=St(nt.info.fields));const hi=me(st);ne.after(hi),ne.next().find(".versions li.version a").on("click",Q),g()("#sidenav li[data-group='"+$e+"'][data-name='"+Ne+"'][data-version='"+De+"']").addClass("has-modifications"),ne.remove()}$n(),m().highlightAll()}}function ee(re){re.preventDefault(),g()("article:visible .versions").each(function(){const le=g()(this).parents("article").data("version");let ae=null;g()(this).find("li.version a").each(function(){g()(this).html(){Object.keys(re).forEach(De=>{re[De].replace(/_/g," ")===ae&&le.push(De)})}),Object.keys(re).forEach(ae=>{le.indexOf(ae)===-1&&le.push(ae)}),le}$n()}})()})();
+}`,type:"json"}]},error:{fields:{"4xx Error Response":[{group:"4xx Error Response",type:"Number",optional:!1,field:"429",isArray:!1,description:"Too many requests, please try again later!!!
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"405",isArray:!1,description:"Method not Allowed
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"404",isArray:!1,description:"No Code Base file found for the respective user
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"401",isArray:!1,description:"Invalid Token !! Please send the valid token
"},{group:"4xx Error Response",type:"Number",optional:!1,field:"400",isArray:!1,description:"Bad Request
"}],"500 Error Response":[{group:"500 Error Response",type:"Number",optional:!1,field:"500",isArray:!1,description:"Internal Server Error
"}]}},filename:"API.js",groupTitle:"searchUser"}];const pe={name:"Code Rating Engine",version:"1.0.0",description:"Engine to handle the rating mechanisms for the clean code",title:"Code Rating Engine",url:"https://coderatingengine-techous.vercel.app",sampleUrl:!1,defaultVersion:"0.0.0",apidoc:"0.3.0",generator:{name:"apidoc",time:"Wed Oct 02 2024 11:24:08 GMT+0530 (India Standard Time)",url:"https://apidocjs.com",version:"1.2.0"}};dt();const Pe=u().compile(g()("#template-header").html()),Te=u().compile(g()("#template-footer").html()),q=u().compile(g()("#template-article").html()),me=u().compile(g()("#template-compare-article").html()),de=u().compile(g()("#template-generator").html()),ve=u().compile(g()("#template-project").html()),Me=u().compile(g()("#template-sections").html()),He=u().compile(g()("#template-sidenav").html()),Ue={aloneDisplay:!1,showRequiredLabels:!1,withGenerator:!0,withCompare:!0};pe.template=Object.assign(Ue,(Ke=pe.template)!=null?Ke:{}),pe.template.forceLanguage&&At(pe.template.forceLanguage);const Ye=(0,s.groupBy)(Le,re=>re.group),et={};g().each(Ye,(re,ne)=>{et[re]=(0,s.groupBy)(ne,le=>le.name)});const at=[];g().each(et,(re,ne)=>{let le=[];g().each(ne,(ae,De)=>{const $e=De[0].title;$e&&le.push($e.toLowerCase()+"#~#"+ae)}),le.sort(),pe.order&&(le=Ie(le,pe.order,"#~#")),le.forEach(ae=>{const $e=ae.split("#~#")[1];ne[$e].forEach(Ne=>{at.push(Ne)})})}),Le=at;let gt={};const Bt={};let Ot={};Ot[pe.version]=1,g().each(Le,(re,ne)=>{gt[ne.group]=1,Bt[ne.group]=ne.groupTitle||ne.group,Ot[ne.version]=1}),gt=Object.keys(gt),gt.sort(),pe.order&&(gt=we(Bt,pe.order)),Ot=Object.keys(Ot),Ot.sort(r().compare),Ot.reverse();const Tt=[];gt.forEach(re=>{Tt.push({group:re,isHeader:!0,title:Bt[re]});let ne="";Le.forEach(le=>{le.group===re&&(ne!==le.name?Tt.push({title:le.title,group:re,name:le.name,type:le.type,version:le.version,url:le.url}):Tt.push({title:le.title,group:re,hidden:!0,name:le.name,type:le.type,version:le.version,url:le.url}),ne=le.name)})});function hn(re,ne,le){let ae=!1;if(!ne)return ae;const De=ne.match(/(.+?)<\/h(1|2)>/gi);return De&&De.forEach(function($e){const Ne=$e.substring(2,3),lt=$e.replace(/<.+?>/g,""),xt=$e.match(/id="api-([^-]+)(?:-(.+))?"/),Pt=xt?xt[1]:null,vt=xt?xt[2]:null;Ne==="1"&<&&Pt&&(re.splice(le,0,{group:Pt,isHeader:!0,title:lt,isFixed:!0}),le++,ae=!0),Ne==="2"&<&&Pt&&vt&&(re.splice(le,0,{group:Pt,name:vt,isHeader:!1,title:lt,isFixed:!1,version:"1.0"}),le++)}),ae}let pn;if(pe.header&&(pn=hn(Tt,pe.header.content,0),pn||Tt.unshift({group:"_header",isHeader:!0,title:pe.header.title==null?yt("General"):pe.header.title,isFixed:!0})),pe.footer){const re=Tt.length;pn=hn(Tt,pe.footer.content,Tt.length),!pn&&pe.footer.title!=null&&Tt.splice(re,0,{group:"_footer",isHeader:!0,title:pe.footer.title,isFixed:!0})}const Tn=pe.title?pe.title:"apiDoc: "+pe.name+" - "+pe.version;g()(document).attr("title",Tn),g()("#loader").remove();const Mn={nav:Tt};g()("#sidenav").append(He(Mn)),g()("#generator").append(de(pe)),(0,s.extend)(pe,{versions:Ot}),g()("#project").append(ve(pe)),pe.header&&g()("#header").append(Pe(pe.header)),pe.footer&&(g()("#footer").append(Te(pe.footer)),pe.template.aloneDisplay&&document.getElementById("api-_footer").classList.add("hide"));const $t={};let Bn="";gt.forEach(function(re){const ne=[];let le="",ae={},De=re,$e="";$t[re]={},Le.forEach(function(Ne){re===Ne.group&&(le!==Ne.name?(Le.forEach(function(lt){re===lt.group&&Ne.name===lt.name&&(Object.prototype.hasOwnProperty.call($t[Ne.group],Ne.name)||($t[Ne.group][Ne.name]=[]),$t[Ne.group][Ne.name].push(lt.version))}),ae={article:Ne,versions:$t[Ne.group][Ne.name]}):ae={article:Ne,hidden:!0,versions:$t[Ne.group][Ne.name]},pe.sampleUrl&&pe.sampleUrl===!0&&(pe.sampleUrl=window.location.origin),pe.url&&ae.article.url.substr(0,4).toLowerCase()!=="http"&&(ae.article.url=pe.url+ae.article.url),se(ae,Ne),Ne.groupTitle&&(De=Ne.groupTitle),Ne.groupDescription&&($e=Ne.groupDescription),ne.push({article:q(ae),group:Ne.group,name:Ne.name,aloneDisplay:pe.template.aloneDisplay}),le=Ne.name)}),ae={group:re,title:De,description:$e,articles:ne,aloneDisplay:pe.template.aloneDisplay},Bn+=Me(ae)}),g()("#sections").append(Bn),pe.template.aloneDisplay||(document.body.dataset.spy="scroll",g()("body").scrollspy({target:"#scrollingNav"})),g()(".form-control").on("focus change",function(){g()(this).removeClass("border-danger")}),g()(".sidenav").find("a").on("click",function(re){re.preventDefault();const ne=this.getAttribute("href");if(pe.template.aloneDisplay){const le=document.querySelector(".sidenav > li.active");le&&le.classList.remove("active"),this.parentNode.classList.add("active")}else{const le=document.querySelector(ne);le&&g()("html,body").animate({scrollTop:le.offsetTop},400)}window.location.hash=ne});function St(re){let ne=!1;return g().each(re,le=>{ne=ne||(0,s.some)(re[le],ae=>ae.type)}),ne}function $n(){g()('button[data-toggle="popover"]').popover().click(function(ne){ne.preventDefault()});const re=g()("#version strong").html();if(g()("#sidenav li").removeClass("is-new"),pe.template.withCompare&&g()("#sidenav li[data-version='"+re+"']").each(function(){const ne=g()(this).data("group"),le=g()(this).data("name"),ae=g()("#sidenav li[data-group='"+ne+"'][data-name='"+le+"']").length,De=g()("#sidenav li[data-group='"+ne+"'][data-name='"+le+"']").index(g()(this));(ae===1||De===ae-1)&&g()(this).addClass("is-new")}),g()(".nav-tabs-examples a").click(function(ne){ne.preventDefault(),g()(this).tab("show")}),g()(".nav-tabs-examples").find("a:first").tab("show"),g()(".sample-request-content-type-switch").change(function(){g()(this).val()==="body-form-data"?(g()("#sample-request-body-json-input-"+g()(this).data("id")).hide(),g()("#sample-request-body-form-input-"+g()(this).data("id")).show()):(g()("#sample-request-body-form-input-"+g()(this).data("id")).hide(),g()("#sample-request-body-json-input-"+g()(this).data("id")).show())}),pe.template.aloneDisplay&&(g()(".show-group").click(function(){const ne="."+g()(this).attr("data-group")+"-group",le="."+g()(this).attr("data-group")+"-article";g()(".show-api-group").addClass("hide"),g()(ne).removeClass("hide"),g()(".show-api-article").addClass("hide"),g()(le).removeClass("hide")}),g()(".show-api").click(function(){const ne=this.getAttribute("href").substring(1),le=document.getElementById("version").textContent.trim(),ae=`.${this.dataset.name}-article`,De=`[id="${ne}-${le}"]`,$e=`.${this.dataset.group}-group`;g()(".show-api-group").addClass("hide"),g()($e).removeClass("hide"),g()(".show-api-article").addClass("hide");let Ne=g()(ae);g()(De).length&&(Ne=g()(De).parent()),Ne.removeClass("hide"),ne.match(/_(header|footer)/)&&document.getElementById(ne).classList.remove("hide")})),pe.template.aloneDisplay||g()("body").scrollspy("refresh"),pe.template.aloneDisplay){const ne=decodeURI(window.location.hash);if(ne!=null&&ne.length!==0){const le=document.getElementById("version").textContent.trim(),ae=document.querySelector(`li .${ne.slice(1)}-init`),De=document.querySelector(`li[data-version="${le}"] .show-api.${ne.slice(1)}-init`);let $e=ae;De&&($e=De),$e.click()}}}function U(re){typeof re=="undefined"?re=g()("#version strong").html():g()("#version strong").html(re),g()("article").addClass("hide"),g()("#sidenav li:not(.nav-fixed)").addClass("hide");const ne={};document.querySelectorAll("article[data-version]").forEach(le=>{const ae=le.dataset.group,De=le.dataset.name,$e=le.dataset.version,Ne=ae+De;!ne[Ne]&&r().lte($e,re)&&(ne[Ne]=!0,document.querySelector(`article[data-group="${ae}"][data-name="${De}"][data-version="${$e}"]`).classList.remove("hide"),document.querySelector(`#sidenav li[data-group="${ae}"][data-name="${De}"][data-version="${$e}"]`).classList.remove("hide"),document.querySelector(`#sidenav li.nav-header[data-group="${ae}"]`).classList.remove("hide"))}),g()("article[data-version]").each(function(le){const ae=g()(this).data("group");g()("section#api-"+ae).removeClass("hide"),g()("section#api-"+ae+" article:visible").length===0?g()("section#api-"+ae).addClass("hide"):g()("section#api-"+ae).removeClass("hide")})}if(U(),g()("#versions li.version a").on("click",function(re){re.preventDefault(),U(g()(this).html())}),g()("#compareAllWithPredecessor").on("click",ee),g()("article .versions li.version a").on("click",Q),g().urlParam=function(re){const ne=new RegExp("[\\?&]"+re+"=([^&#]*)").exec(window.location.href);return ne&&ne[1]?ne[1]:null},g().urlParam("compare")&&g()("#compareAllWithPredecessor").trigger("click"),window.location.hash){const re=decodeURI(window.location.hash);g()(re).length>0&&g()("html,body").animate({scrollTop:parseInt(g()(re).offset().top)},0)}document.querySelector('[data-toggle="offcanvas"]').addEventListener("click",function(){const re=document.querySelector(".row-offcanvas");re&&re.classList.toggle("active")}),g()("#scrollingNav .sidenav-search input.search").focus(),g()('[data-action="filter-search"]').on("keyup",V(re=>{const ne=re.currentTarget.value.toLowerCase();g()(".sidenav a.nav-list-item").filter((le,ae)=>g()(ae).toggle(g()(ae).text().toLowerCase().indexOf(ne)>-1))},200)),g()("span.search-reset").on("click",function(){g()("#scrollingNav .sidenav-search input.search").val("").focus(),g()(".sidenav").find("a.nav-list-item").show()});function V(re,ne){let le=null;return(...ae)=>{clearTimeout(le),le=setTimeout(re.bind(this,...ae),ne||0)}}function Q(re){re.preventDefault();const ne=g()(this).parents("article"),le=g()(this).html(),ae=ne.find(".version"),De=ae.find("strong").html();ae.find("strong").html(le);const $e=ne.data("group"),Ne=ne.data("name"),lt=ne.data("version"),xt=ne.data("compare-version");if(xt!==le&&!(!xt&<===le)){if(xt&&$t[$e][Ne][0]===le||lt===le)Ce($e,Ne,lt);else{let Pt={},vt={};g().each(et[$e][Ne],function(ar,Vn){Vn.version===lt&&(Pt=Vn),Vn.version===le&&(vt=Vn)});const st={article:Pt,compare:vt,versions:$t[$e][Ne]};st.article.id=st.article.group+"-"+st.article.name+"-"+st.article.version,st.article.id=st.article.id.replace(/\./g,"_"),st.compare.id=st.compare.group+"-"+st.compare.name+"-"+st.compare.version,st.compare.id=st.compare.id.replace(/\./g,"_");let nt=Pt;nt.header&&nt.header.fields&&(st._hasTypeInHeaderFields=St(nt.header.fields)),nt.parameter&&nt.parameter.fields&&(st._hasTypeInParameterFields=St(nt.parameter.fields)),nt.error&&nt.error.fields&&(st._hasTypeInErrorFields=St(nt.error.fields)),nt.success&&nt.success.fields&&(st._hasTypeInSuccessFields=St(nt.success.fields)),nt.info&&nt.info.fields&&(st._hasTypeInInfoFields=St(nt.info.fields)),nt=vt,st._hasTypeInHeaderFields!==!0&&nt.header&&nt.header.fields&&(st._hasTypeInHeaderFields=St(nt.header.fields)),st._hasTypeInParameterFields!==!0&&nt.parameter&&nt.parameter.fields&&(st._hasTypeInParameterFields=St(nt.parameter.fields)),st._hasTypeInErrorFields!==!0&&nt.error&&nt.error.fields&&(st._hasTypeInErrorFields=St(nt.error.fields)),st._hasTypeInSuccessFields!==!0&&nt.success&&nt.success.fields&&(st._hasTypeInSuccessFields=St(nt.success.fields)),st._hasTypeInInfoFields!==!0&&nt.info&&nt.info.fields&&(st._hasTypeInInfoFields=St(nt.info.fields));const hi=me(st);ne.after(hi),ne.next().find(".versions li.version a").on("click",Q),g()("#sidenav li[data-group='"+$e+"'][data-name='"+Ne+"'][data-version='"+De+"']").addClass("has-modifications"),ne.remove()}$n(),m().highlightAll()}}function ee(re){re.preventDefault(),g()("article:visible .versions").each(function(){const le=g()(this).parents("article").data("version");let ae=null;g()(this).find("li.version a").each(function(){g()(this).html(){Object.keys(re).forEach(De=>{re[De].replace(/_/g," ")===ae&&le.push(De)})}),Object.keys(re).forEach(ae=>{le.indexOf(ae)===-1&&le.push(ae)}),le}$n()}})()})();
diff --git a/api/public/index.html b/api/public/index.html
index b211e24..6508ac7 100644
--- a/api/public/index.html
+++ b/api/public/index.html
@@ -5,15 +5,15 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -1042,6 +1042,6 @@ {{__ "Request Body"}}
-
+