Skip to content

Web quiz engine REST CRUD API with basic auth built with Java Spring Boot and H2 database

Notifications You must be signed in to change notification settings

TheRedPandaDev/web-quiz-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Quiz Engine

API /api

Register a new user

Consumes a JSON:

{
  "email": "your@email.com", // Must have a valid format (with @ and .)
  "password": "secret" // Must have at least five characters
}

GET /quiz

Get a sample quiz

POST /quiz

Answer the simple quiz

Post your own quiz

Consumes a JSON:

{
  "title": "TITLE HERE", // Must not be empty
  "text": "TEXT HERE", // Must not be empty
  "options": ["OPTION1", "OPTION2"], // Must not be null, must have at least 2 options
  "answer": [0,1]
}

Get all the added quizzes

Get quiz by id specified by the path variable

Solve quiz by id specified by the path variable

Consumes a JSON:

{
  "answer": [0,1]
}

Delete your quiz by id specified by the path variable

About

Web quiz engine REST CRUD API with basic auth built with Java Spring Boot and H2 database

Topics

Resources

Stars

Watchers

Forks

Languages