POST /api/v1/games/:roomID/teams
{
name: String,
language: String
}
- 201 Created
- 404 Not Found
POST /api/v1/games/:roomID/questions/:questionID/answer
{
teamName: String,
answer: String
}
{
answerId: Number
}
- 201 Created
- 404 Not Found
PUT /api/v1/games/:roomID/questions/:questionID/answer
{
teamName: String,
answer: String
}
{
answerId: Number
}
- 200 OK
GET /api/v1/games/:roomID/questions/:questionID
None
- 200 OK
- 404 Not Found
{
question: String,
questionNumber: Number
}
GET /api/v1/games/:roomID/questions/:questionID/answers/:teamName
None
- 200 OK
- 404 Not Found
{
answer: String,
isCorrect: Boolean
}
None
GET /api/v1/games/:roomID/questions/:questionID
None
{
question: String
}
GET /api/v1/games/:roomID/questions/:questionID/answers
None
{
teams: [
{
name: String,
answer: String
}
]
}
GET /api/v1/games/:roomID/teams
None
{
teams: [
{
name: String,
score: Number
}
]
}
GET /api/v1/games/:roomID/round
None
{
roundNumber: Number
}
GET /api/v1/games/:roomID/rounds
None
{
roundNumber: Number
}
POST /api/v1/games
{
name: String
}
- 201 Created
DELETE /api/v1/games/:roomID/teams/:teamID
None
- 200 OK
PUT /api/v1/games/:roomID
{
start: Boolean
}
POST /api/v1/games/:roomID/round/categories
{
categories: [CategoryID]
}
POST /api/v1/games/:roomID/round
{
roundProgression: true,
question: QuestionID
}
PUT /api/v1/games/:roomID/teams/:teamID/answer
{
correct: Boolean
}
GET /api/v1/games/:roomID/questions/:questionID/answers
None
{
answers: [
{
team: String,
answer: String
}
]
}
GET /api/v1/games/:roomID/teams
None
{
teams: [String]
}
GET /api/v1/games/:roomID/categories
None
{
categories: [String]
}
GET /api/v1/games/:roomID/round/questions
None
{
questions: [
questionId: Number,
question: String
]
}