{
  "info": {
    "name": "Quiz APIs",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Save Quiz Attempt",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"test_series_id\": 1,\n  \"answers\": [\n    {\n      \"question_id\": 12,\n      \"selected_answer\": \"B\",\n      \"correct_answer\": \"B\",\n      \"is_correct\": 1,\n      \"marks_awarded\": 1,\n      \"time_spent\": 25\n    },\n    {\n      \"question_id\": 15,\n      \"selected_answer\": \"C\",\n      \"correct_answer\": \"A\",\n      \"is_correct\": 0,\n      \"marks_awarded\": 0,\n      \"time_spent\": 30\n    }\n  ]\n}"
        },
        "url": {
          "raw": "http://localhost:3000/saveQuizAttempt",
          "protocol": "http",
          "host": ["localhost"],
          "port": "3000",
          "path": ["saveQuizAttempt"]
        }
      }
    },
    {
      "name": "Get Quiz Stats",
      "request": {
        "method": "GET",
        "url": {
          "raw": "http://localhost:3000/getQuizStats?test_series_id=1",
          "protocol": "http",
          "host": ["localhost"],
          "port": "3000",
          "path": ["getQuizStats"],
          "query": [
            {
              "key": "test_series_id",
              "value": "1"
            }
          ]
        }
      }
    },
    {
      "name": "Get Quiz Leaderboard",
      "request": {
        "method": "GET",
        "url": {
          "raw": "http://localhost:3000/getQuizLeaderboard?test_series_id=1&limit=10",
          "protocol": "http",
          "host": ["localhost"],
          "port": "3000",
          "path": ["getQuizLeaderboard"],
          "query": [
            {
              "key": "test_series_id",
              "value": "1"
            },
            {
              "key": "limit",
              "value": "10"
            }
          ]
        }
      }
    },
    {
      "name": "Get Quiz Details",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": 1\n}"
        },
        "url": {
          "raw": "http://localhost:3000/getQuizDetails",
          "protocol": "http",
          "host": ["localhost"],
          "port": "3000",
          "path": ["getQuizDetails"]
        }
      }
    }
  ]
}