Quiz API is a small project, built to explore spring's capabilities around user creation, password management and ORM.
- The "api/register" endpoint is exposed in order for a user to be able to register
- A user is able then to perform CRUD operations on potential quizzes, i.e a user can create a quiz by posting to
/api/quizzesthe following payload:
{
"title": "The Java Logo",
"text": "What is depicted on the Java logo?",
"options": ["Robot","Tea leaf","Cup of coffee","Bug"],
"answer": [2]
}
- A user is able to solve a specific quiz by posting to
/quizzes/{id}/solvea payload similar to the following:
{
"answer": [2]
}
The answer is a list since the correct answers might be more than one.
- A user can retrieve his solved quizzes in a paginated way. It's worth mentioning that a quiz can be solved more than once