Web Quiz Engine
Study project from JetBrain Hyperskill for Java Backend Developer Track.
/api
API/register
POSTRegister a new user
Consumes a JSON:
{
"email": "your@email.com", // Must have a valid format (with @ and .)
"password": "secret" // Must have at least five characters
}
/quiz
GETGet a sample quiz
/quiz
POSTAnswer the simple quiz
/quizzes
POSTPost your own quiz
Consumes a JSON:
{
"title": "TITLE HERE", // Must not be empty
"text": "TEXT HERE", // Must not be empty
"options": ["OPTION1", "OPTION2"], // Must not be null, must have at least 2 options
"answer": [0,1]
}
/quizzes
GETGet all the added quizzes
/quizzes/{id}
GETGet quiz by id specified by the path variable
/quizzes/{id}/solve
POSTSolve quiz by id specified by the path variable
Consumes a JSON:
{
"answer": [0,1]
}
/quizzes/{id}
DELETEDelete your quiz by id specified by the path variable