Skip to content

zszkiladz/quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quiz

An application that allows you to manage quizzes - add, delete, display and solve them.

Endpoints

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

About

Web Aplication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages