GET /questions
: retrieves the list of all the Questions with their AnswersGET /questions/:questionId
: retrieves a single questionDELETE /questions/:questionId
: deletes a questionPOST /questions/import
: imports (from a CSV) some questions (with their answers)GET /rooms/active
: retrieves the active Room, along with some info (?)
/rooms-{roomId}
: everything concernig the particular{roomId}
room- FE -> BE
start quiz
: starts the quiz - BE -> FE
question
: prompts the next question + answers - FE -> BE
answer { questionId, answerId }
: answers to a question - BE -> FE
score
: sends the results of the quiz - BE -> FE
invalid room id
: ERROR, the room id provided isn't valid - BE -> FE
invalid admin user
: ERROR, you are trying to access the admin socket via a non-admin user - BE -> FE
invalid question id
: ERROR, the question id provided isn't valid - BE -> FE
invalid answer id
: ERROR, the answer id provided isn't valid
- FE -> BE
id
: UUIDtext
: Stringcorrect
: BooleancreatedAt
: DateupdatedAt
: Date
- belongs to
Question
- belongs to many
RoomUser
throughRoomUserAnswer
id
: UUIDtext
: StringcreatedAt
: DateupdatedAt
: Date
- has many
Answer
- belongs to many
Room
throughRoomQuestion
id
: UUIDstartedAt
: DatecreatedAt
: DateupdatedAt
: Date
- belongs to many
Question
throughRoomQuestion
- belongs to many
User
throughRoomUser
id
: UUIDorder
: NumberstartedAt
: DatecreatedAt
: DateupdatedAt
: Date
id
: UUIDscore
: DoublecreatedAt
: DateupdatedAt
: Date
- belongs to many
Answer
throughRoomUserAnswer
id
: UUIDansweredAfter
: DoublecreatedAt
: DateupdatedAt
: Date
id
: UUIDname
: Stringemail
: Stringpicture
: Stringadmin
: BooleancreatedAt
: DateupdatedAt
: Date
- belongs to many
Room
throughRoomUser