Exam Question Details

Exam Question Details

POSTExam Question Details

This API will be used to retrieve all of the questions and their details against the test.

Pass ak, sgn, and ts as headers, and all three parameters will be received using the Signature Generation API.

Header
ak:{{API Key}} sgn:{{sgn}} ts:{{ts}}
URL
Copy
{{API Endpoint}}/api/v1/examQuestionData
Body
Copy
{ "testId":"{test Id}" }
Response
Case 1 : When Success
Success
{ "result": "success", "success": { "code": "200", "msg": "Operation Successfull" }, "data": { "testDetails": { "testId": 6395254, "testName": "Current Events Quiz", "publish": 1, "startDate": "2024-05-29", "endDate": "2034-05-31", "startTime": "00:15:00", "endTime": "23:00:00", "duration": 60, "totalQuestion": 10, "totalMarks": 60 }, "questionDetails": [ { "questionId": 182665121, "questionText": "Which country experienced the highest GDP growth in 2023?\r\n ", "option1": "China", "option2": "India", "option3": "United States", "option4": "Brazil", "correctAns": "b", "solution": "", "subjectId": 13291061, "subjectName": "Economy", "topicId": 18408653, "topicName": "Global Markets", "rightMarks": 6, "negativeMarks": 0, "questionTypeId": 7, "questionTypeName": "Multiple Choice", "difficultyId": 0, "difficultyName": "-" }, { "questionId": 182665122, "questionText": "Which company launched the first commercially available quantum computer in 2024?\r\n ", "option1": "IBM", "option2": "Google", "option3": "Intel", "option4": "Microsoft", "correctAns": "a", "solution": "", "subjectId": 13291061, "subjectName": "Economy", "topicId": 18408653, "topicName": "Global Markets", "rightMarks": 6, "negativeMarks": 0, "questionTypeId": 7, "questionTypeName": "Multiple Choice", "difficultyId": 0, "difficultyName": "-" } ] } }
Case 2 : When test not exist
Error
{ "result": "error", "error": { "code": "3101", "msg": "Test does not exist on the portal." } }