An application that allows you to manage quizzes - add, delete, display and solve them.
All not GET
endpoints accepts parameters as json (Content-type application/json
).
The application is secured with HTTP Basic authorization.
All endpoints expect /api/register
have required authorization.
- Quiz Controller:
GET /api/quizzes
- getting all quizzes,GET /api/quizzes/{id}
- getting quiz with id,GET /api/quizzes/completed
- getting completed quizzes,POST /api/quizzes
- quiz adding, params:- title: String,
- text: String,
- options: String[]
- answer: int[]
POST /api/quizzes/{id}/solve
- solving quiz with id, params:- answer: int[]
DELET /api/quizzes/{id}
- deleting quiz with id (only if user is quiz author),
- User Controller:
POST /api/register
- registering user, params:- email: String,
- password: String
localhost:8080/api/springdoc.html