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

Query Parameters

quizTopic
string
required
Minimum length: 1
quizDescription
string
Minimum length: 1
numberOfQuestions
integer
required
Required range: 1 <= x <= 10
quizTags
string[]
language
enum<string>
default:en
Available options:
en,
de,
fr,
es,
it,
ro,
sr,
tl,
pl
quizType
enum<string>
required
Available options:
singleplayer,
multiplayer,
document,
random

Response

200
application/json

Quiz generated successfully

The response is of type object.