{
  "info": {
    "name": "Quiz + User APIs",
    "description": "Collection for quiz submission, stats, leaderboard and supporting user APIs.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Home Payload",
      "request": {
        "method": "POST",
        "header": [
          { "key": "devicetype", "value": "mobile" },
          { "key": "devicetoken", "value": "DEVICE_TOKEN" },
          { "key": "location", "value": "Hyderabad" },
          { "key": "version", "value": "1.0.0" },
          { "key": "Authorization", "value": "Bearer {{jwt}}" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"search\": \"\",\n  \"state\": \"\",\n  \"city\": \"\",\n  \"course_type\": \"\",\n  \"limit\": 20\n}"
        },
        "url": {
          "raw": "http://localhost:3000/user/home",
          "host": ["http://localhost:3000"],
          "path": ["user","home"]
        }
      }
    },
    {
      "name": "Submit Quiz Attempt",
      "request": {
        "method": "POST",
        "header": [
          { "key": "devicetype", "value": "mobile" },
          { "key": "devicetoken", "value": "DEVICE_TOKEN" },
          { "key": "location", "value": "Hyderabad" },
          { "key": "version", "value": "1.0.0" },
          { "key": "Authorization", "value": "Bearer {{jwt}}" }
        ],
        "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/user/quiz/submit",
          "host": ["http://localhost:3000"],
          "path": ["user","quiz","submit"]
        }
      }
    },
    {
      "name": "Quiz Stats",
      "request": {
        "method": "POST",
        "header": [
          { "key": "devicetype", "value": "mobile" },
          { "key": "devicetoken", "value": "DEVICE_TOKEN" },
          { "key": "location", "value": "Hyderabad" },
          { "key": "version", "value": "1.0.0" },
          { "key": "Authorization", "value": "Bearer {{jwt}}" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"test_series_id\": 1\n}"
        },
        "url": {
          "raw": "http://localhost:3000/user/quiz/stats",
          "host": ["http://localhost:3000"],
          "path": ["user","quiz","stats"]
        }
      }
    },
    {
      "name": "Quiz Leaderboard",
      "request": {
        "method": "POST",
        "header": [
          { "key": "devicetype", "value": "mobile" },
          { "key": "devicetoken", "value": "DEVICE_TOKEN" },
          { "key": "location", "value": "Hyderabad" },
          { "key": "version", "value": "1.0.0" },
          { "key": "Authorization", "value": "Bearer {{jwt}}" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"test_series_id\": 1,\n  \"limit\": 10\n}"
        },
        "url": {
          "raw": "http://localhost:3000/user/quiz/leaderboard",
          "host": ["http://localhost:3000"],
          "path": ["user","quiz","leaderboard"]
        }
      }
    },
    {
      "name": "Preferred Colleges",
      "request": {
        "method": "POST",
        "header": [
          { "key": "devicetype", "value": "mobile" },
          { "key": "devicetoken", "value": "DEVICE_TOKEN" },
          { "key": "location", "value": "Hyderabad" },
          { "key": "version", "value": "1.0.0" },
          { "key": "Authorization", "value": "Bearer {{jwt}}" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"search\": \"engineering\",\n  \"state\": \"Telangana\",\n  \"city\": \"Hyderabad\",\n  \"course_type\": \"Full-Time\",\n  \"limit\": 5\n}"
        },
        "url": {
          "raw": "http://localhost:3000/user/getPreferredColleges",
          "host": ["http://localhost:3000"],
          "path": ["user","getPreferredColleges"]
        }
      }
    },
    {
      "name": "College Details",
      "request": {
        "method": "POST",
        "header": [
          { "key": "devicetype", "value": "mobile" },
          { "key": "devicetoken", "value": "DEVICE_TOKEN" },
          { "key": "location", "value": "Hyderabad" },
          { "key": "version", "value": "1.0.0" },
          { "key": "Authorization", "value": "Bearer {{jwt}}" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"college_id\": 123\n}"
        },
        "url": {
          "raw": "http://localhost:3000/user/getCollegeDetails",
          "host": ["http://localhost:3000"],
          "path": ["user","getCollegeDetails"]
        }
      }
    },
    {
      "name": "Banners",
      "request": {
        "method": "POST",
        "header": [
          { "key": "devicetype", "value": "mobile" },
          { "key": "devicetoken", "value": "DEVICE_TOKEN" },
          { "key": "location", "value": "Hyderabad" },
          { "key": "version", "value": "1.0.0" },
          { "key": "Authorization", "value": "Bearer {{jwt}}" },
          { "key": "x-api-key", "value": "{{ext_api_key}}" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"location\": 1\n}"
        },
        "url": {
          "raw": "http://localhost:3000/user/getBanners",
          "host": ["http://localhost:3000"],
          "path": ["user","getBanners"]
        }
      }
    },
    {
      "name": "Compare Colleges",
      "request": {
        "method": "GET",
        "header": [
          { "key": "devicetype", "value": "mobile" },
          { "key": "devicetoken", "value": "DEVICE_TOKEN" },
          { "key": "location", "value": "Hyderabad" },
          { "key": "version", "value": "1.0.0" },
          { "key": "Authorization", "value": "Bearer {{jwt}}" }
        ],
        "url": {
          "raw": "http://localhost:3000/user/compare-colleges?college_ids=%5B1,2%5D",
          "host": ["http://localhost:3000"],
          "path": ["user","compare-colleges"],
          "query": [
            { "key": "college_ids", "value": "[1,2]" }
          ]
        }
      }
    },
    {
      "name": "Get Courses",
      "request": {
        "method": "GET",
        "header": [
          { "key": "devicetype", "value": "mobile" },
          { "key": "devicetoken", "value": "DEVICE_TOKEN" },
          { "key": "location", "value": "Hyderabad" },
          { "key": "version", "value": "1.0.0" },
          { "key": "Authorization", "value": "Bearer {{jwt}}" }
        ],
        "url": {
          "raw": "http://localhost:3000/user/getMstCourses?course_type=diploma&course_mode=online",
          "host": ["http://localhost:3000"],
          "path": ["user","getMstCourses"],
          "query": [
            { "key": "course_type", "value": "diploma" },
            { "key": "course_mode", "value": "online" }
          ]
        }
      }
    },
    {
      "name": "States",
      "request": {
        "method": "GET",
        "header": [
          { "key": "devicetype", "value": "mobile" },
          { "key": "devicetoken", "value": "DEVICE_TOKEN" },
          { "key": "location", "value": "Hyderabad" },
          { "key": "version", "value": "1.0.0" },
          { "key": "Authorization", "value": "Bearer {{jwt}}" }
        ],
        "url": {
          "raw": "http://localhost:3000/user/states?country=India",
          "host": ["http://localhost:3000"],
          "path": ["user","states"],
          "query": [
            { "key": "country", "value": "India" }
          ]
        }
      }
    },
    {
      "name": "Cities",
      "request": {
        "method": "GET",
        "header": [
          { "key": "devicetype", "value": "mobile" },
          { "key": "devicetoken", "value": "DEVICE_TOKEN" },
          { "key": "location", "value": "Hyderabad" },
          { "key": "version", "value": "1.0.0" },
          { "key": "Authorization", "value": "Bearer {{jwt}}" }
        ],
        "url": {
          "raw": "http://localhost:3000/user/cities?state=Telangana&country=India",
          "host": ["http://localhost:3000"],
          "path": ["user","cities"],
          "query": [
            { "key": "state", "value": "Telangana" },
            { "key": "country", "value": "India" }
          ]
        }
      }
    },
    {
      "name": "Quiz Details",
      "request": {
        "method": "POST",
        "header": [
          { "key": "devicetype", "value": "mobile" },
          { "key": "devicetoken", "value": "DEVICE_TOKEN" },
          { "key": "location", "value": "Hyderabad" },
          { "key": "version", "value": "1.0.0" },
          { "key": "Authorization", "value": "Bearer {{jwt}}" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": 1\n}"
        },
        "url": {
          "raw": "http://localhost:3000/user/quizDetails",
          "host": ["http://localhost:3000"],
          "path": ["user","quizDetails"]
        }
      }
    }
  ]
}
