https://github.com/cau777/webquizengine
A Spring REST API to create and solve quizzes. It includes a simple registration process and uses authentication to keep track of users' completed quizzes.
https://github.com/cau777/webquizengine
authentication java jpa rest spring-boot
Last synced: about 2 months ago
JSON representation
A Spring REST API to create and solve quizzes. It includes a simple registration process and uses authentication to keep track of users' completed quizzes.
- Host: GitHub
- URL: https://github.com/cau777/webquizengine
- Owner: cau777
- License: mit
- Created: 2021-09-03T01:22:00.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-03T11:08:53.000Z (almost 5 years ago)
- Last Synced: 2025-07-01T12:05:27.382Z (12 months ago)
- Topics: authentication, java, jpa, rest, spring-boot
- Language: Java
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebQuizEngine
A Spring REST API to create and solve quizzes. It includes a simple registration process and uses authentication to keep
track of users' completed quizzes.
## Allowed methods
- GET /api/quizzes?page=0 => returns a page with 10 quizzes
- GET /api/quizzes/{id} => returns a specific quiz or 404
- POST /api/quizzes => creates a new question. The request body should contain a title, a text, an array of options and
an array of correct options
- POST /api/quizzes/{id}/solve => Tries to solve a question. The request body should contain an array of correct
options. It returns a JSON object specifying the success.
- DELETE /api/quizzes/{id} => Deletes a question. Only the author of a question can delete it.
- GET /api/quizzes/completed?page=0 => returns a page with 10 completed questions by the current user
- POST /api/register => creates a new user. The request body should contain an email and a password