Spring RestController to access and create quizzes.
The goal of the Quiz Engine was to create a multi-user web service that can create, read, answer questions, and delete users, and used MVC as the design framework.
The questions have the following input:
{
"title": "Coffee drinks",
"text": "Select only coffee drinks.",
"options": ["Americano","Tea","Cappuccino","Sprite"],
"answer": [0,2]
}
And when retrieved, they have the following output:
{
"id": 1,
"title": "Coffee drinks",
"text": "Select only coffee drinks.",
"options": ["Americano","Tea","Cappuccino","Sprite"]
}
Users are registed without auth using this format:
{
"email": "test@gmail.com",
"password": "secret"
}
Basic auth was created using Spring Security. The passwords are encrypted and stored in the database using BCrypt. Deletion is permission based and only the author of a particular quiz can delete it.
This project was designed by Hyperskill.
MIT License See LICENSE.