Quiz API is a web service that enables developers to seamlessly incorporate quiz functionalities into their applications, websites, or platforms. It offers endpoints for managing quiz & questions, creating and customizing random questions quizzes, and tracking user performance. Features often include various question types and categorization.
BaseURL = Set variable with initial value as your server base URL in your postman collection.
-
- Method = GET
- URL = {{BaseURL}}/question/allQuestions
-
- Method = GET
- URL = {{BaseURL}}/question/category/{category}
-
- Method = POST
- URL = {{BaseURL}}/question/add
- Body = JSON object (category, questionTitle, rightAnswer, difficultyLevel, option1, option2, option3, option4)
-
- Method = PUT
- URL = {{BaseURL}}/question/update
- Body = JSON object (id, category, questionTitle, rightAnswer, difficultyLevel, option1, option2, option3, option4)
-
- Method = POST
- URL = {{BaseURL}}/quiz/create
- Body = Form data (category, noOfQuestion, title)
-
- Method = GET
- URL = {{BaseURL}}/quiz/get/{quizId}
-
- Method = GET
- URL = {{BaseURL}}/quiz/submit/{quizId}
- Body = JSON objects (id, response)
-
- Method = DELETE
- URL = {{BaseURL}}/quiz/delete/{quizId}