Create an online quiz application from scratch
Back
Create an online quiz application from scratch
Create a quiz application that supports the following API endpoint:
/quiz
This endpoint supports the following operations:
GET /quiz/{moduleId}
: fetch quiz questions for a given module.
POST /quiz/{moduleId}
: submit quiz answers and return an evaluation.
Scope of work:
Implement **GET **/quiz/{module-id} and the corresponding request handler and response methods.
Retrieve a list of questions from MongoDB based on the module-id
Accept user answers to a given quiz via a POST request
Evaluate user answers for correctness and compute the total score
Return a response with explanations for all answers
Skills used:
Spring Boot, Spring Data, REST API, Jackson, JUnit, MongoDB, HTTP GET, POST