GET
/
api
/
v1
/
quizzes
/
documents
curl --request GET \
  --url http://localhost:8787/api/v1/quizzes/documents
{
  "quiz": {
    "quizTitle": "<string>",
    "questions": [
      {
        "questionTitle": "<string>",
        "text": "<string>",
        "options": [
          "<string>"
        ],
        "correctAnswer": "<string>"
      }
    ]
  }
}

Query Parameters

documentId
number
required
numberOfQuestions
number
required
Required range: 1 <= x <= 10
quizType
enum<string>
default:document
Available options:
singleplayer,
multiplayer,
document,
random
language
enum<string>
default:en
Available options:
en,
de,
fr,
es,
it,
ro,
sr,
tl,
pl

Response

200
application/json

Quiz generated successfully

The response is of type object.