Skip to content

A simple RESTful app in Java 11 and Spring Boot for creating quizzes.

Notifications You must be signed in to change notification settings

Lexxkit/skypro-lexxkit-quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quize App

This app adds questions with answers to its inner collection and returns from it the number of randomly selected questions desired by the user.

Once the application starts, the initial collection of questions is empty and must be filled in by the user.

Mappings

  1. /exam/java/add?question=&answer=

Add question and its answer to the app. If the app contains the same question and answer - 400 status (Bad Request) will be thrown.

  1. /exam/java/remove?question=&answer=

Remove question and its answer to the app. If app doesn't contain equal question and answer - 404 status (Not Found) will be thrown.

  1. /exam/java

Returns list of all questions and answers from the inner storage.

  1. /exam/get/{number}

Returns a list of desired number of questions picked randomly from the app inner storage. If {number} <= 0 or {number} > amount of questions in the app - 400 status (Bad Request) will be thrown.

About

A simple RESTful app in Java 11 and Spring Boot for creating quizzes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages