curl --request POST \
--url http://localhost:8787/api/v1/quiz-submissions/multiplayer/{roomId}/quiz \
--header 'Content-Type: application/json' \
--data '{
"quizTitle": "<string>",
"quizTopics": [
"<string>"
],
"language": "en",
"questions": [
{
"questionTitle": "<string>",
"text": "<string>",
"options": [
"<string>"
],
"correctAnswer": "<string>"
}
]
}'
{
"quizId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"questions": [
{
"questionTitle": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>",
"options": [
"<string>"
],
"correctAnswer": "<string>"
}
]
}
This route is called once by the host user. It creates one quiz and one set of questions for the entire lobby.
curl --request POST \
--url http://localhost:8787/api/v1/quiz-submissions/multiplayer/{roomId}/quiz \
--header 'Content-Type: application/json' \
--data '{
"quizTitle": "<string>",
"quizTopics": [
"<string>"
],
"language": "en",
"questions": [
{
"questionTitle": "<string>",
"text": "<string>",
"options": [
"<string>"
],
"correctAnswer": "<string>"
}
]
}'
{
"quizId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"questions": [
{
"questionTitle": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>",
"options": [
"<string>"
],
"correctAnswer": "<string>"
}
]
}
Quiz submitted successfully
The response is of type object
.