Crio Portfolio

Back

Buildout: Build your own Q&A application

Create an online quiz application from scratch

Create a quiz application that supports the following API endpoint:


/quiz

This endpoint supports the following operations:

  1. GET /quiz/{moduleId}: fetch quiz questions for a given module.

  2. POST /quiz/{moduleId}: submit quiz answers and return an evaluation.

image alt textimage alt text

Buildout: Build your own Q&A application Modules

1

Create APIs to fetch quiz questions and submit answers

Scope of work:

  1. Implement **GET **/quiz/{module-id} and the corresponding request handler and response methods.

  2. Retrieve a list of questions from MongoDB based on the module-id

  3. Accept user answers to a given quiz via a POST request

  4. Evaluate user answers for correctness and compute the total score

  5. Return a response with explanations for all answers

Skills used:

Spring Boot, Spring Data, REST API, Jackson, JUnit, MongoDB, HTTP GET, POST