curl --request POST \
--url http://localhost:8787/api/v1/quiz-submissions/singleplayer/document/submit \
--header 'Content-Type: application/json' \
--data '{
"documentId": 123,
"quizTitle": "<string>",
"language": "<string>",
"passingScore": 123,
"userScore": 123,
"questions": [
{
"text": "<string>",
"correctAnswer": "<string>",
"userAnswer": "<string>",
"options": [
"<string>"
]
}
],
"timeTaken": 123
}'
{
"quizId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quizTitle": "<string>",
"quizScore": 123,
"totalTime": 123,
"correctAnswersCount": 123,
"totalQuestions": 123,
"questions": [
{
"text": "<string>",
"correctAnswer": "<string>",
"userAnswer": "<string>"
}
],
"passingScore": 123
}
Submit a quiz generated from a document
curl --request POST \
--url http://localhost:8787/api/v1/quiz-submissions/singleplayer/document/submit \
--header 'Content-Type: application/json' \
--data '{
"documentId": 123,
"quizTitle": "<string>",
"language": "<string>",
"passingScore": 123,
"userScore": 123,
"questions": [
{
"text": "<string>",
"correctAnswer": "<string>",
"userAnswer": "<string>",
"options": [
"<string>"
]
}
],
"timeTaken": 123
}'
{
"quizId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quizTitle": "<string>",
"quizScore": 123,
"totalTime": 123,
"correctAnswersCount": 123,
"totalQuestions": 123,
"questions": [
{
"text": "<string>",
"correctAnswer": "<string>",
"userAnswer": "<string>"
}
],
"passingScore": 123
}
Document quiz submission successful
The response is of type object
.