Assessment Link Generation Rest Service - 1610oct24java/AssociateEvaluationSystem GitHub Wiki

#Assessment Generation
endpoint: "user/RandomAssessment"

This endpoint generates an assessment based on a JSON object with the following parameters:

To allow for multiple categories, we get one or more copies of the 5 elements that follow: category, mcQuestion, msQuestion, ddQuestion and csQuestion. To avoid naming conflicts, all of them need to be preceded by cat'x' where x is a number starting from 1 and increasing by 1 for each category.
category : The category of the assessment(SDET, .NET, Java).
mcQuestion : The number of multiple questions to be in the assessment.
msQuestion : The number of multiple select questions to be in the assessment.
ddQuestion : The number of drag and drop questions to be in the assessment.
csQuestion : The number of code snippet questions to be in the assessment.
link : The link is left blank when calling this endpoint. The service will return this same object, but with the Link to the assessment here.
userEmail : The userEmail is the email of the candidate to whom the generated assessment should be assigned.
timeLimit : The time allocated for the test in minutes. Must be an integer.

{
cat1 : "Java",
cat1mcQuestions : "4",
cat1msQuestions : "4",
cat1ddQuestions : "2",
cat1csQuestions : "1",
cat2 : "SDET",
cat2mcQuestions : "2",
cat2msQuestions : "3",
cat2ddQuestions : "1",
cat2csQuestions : "1",
link : "",
userEmail : "[email protected]",
timeLimit : "45"
}

#Link Generation
endpoint: "rest/link"

This endpoint generates a link based on an assessment.
It takes an assessment object in the request and returns a String that is a link to the assessment.