API Documentation
Quiz Submissions Multiplayer
Quiz Submissions Singleplayer
Share
Documents
Rooms
Create a room
Create a room
POST
/
api
/
v1
/
rooms
Copy
curl --request POST \
--url http://localhost:8787/api/v1/rooms \
--header 'Content-Type: application/json' \
--data '{
"code": "<string>",
"hostId": "<string>",
"maxPlayers": 123,
"numQuestions": 123,
"timeLimit": 123,
"language": "<string>"
}'
Copy
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"code": "<string>",
"host_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"max_players": 123,
"num_questions": 123,
"time_limit": 123,
"created_at": "2023-11-07T05:31:56Z"
}
Body
application/json
Response
200
application/json
Room created
The response is of type object
.
Copy
curl --request POST \
--url http://localhost:8787/api/v1/rooms \
--header 'Content-Type: application/json' \
--data '{
"code": "<string>",
"hostId": "<string>",
"maxPlayers": 123,
"numQuestions": 123,
"timeLimit": 123,
"language": "<string>"
}'
Copy
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"code": "<string>",
"host_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"max_players": 123,
"num_questions": 123,
"time_limit": 123,
"created_at": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.