{
  "info": {
    "name": "Shibir 2024 API",
    "_postman_id": "shibir-2024-api",
    "description": "API collection for Shibir 2024 backend. Base URL: https://production.bharuchbaps.in/shibir/index.php\n\nAll POST endpoints accept and return JSON. Set Content-Type: application/json on every request.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://production.bharuchbaps.in/shibir/index.php",
      "type": "string"
    },
    {
      "key": "shibir_id",
      "value": "SH002",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Auth",
      "item": [
        {
          "name": "Login",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/login/login", "host": ["{{base_url}}"], "path": ["login", "login"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"SH002\",\n  \"password\": \"secret\"\n}"
            }
          },
          "response": []
        },
        {
          "name": "Reset Password",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/login/reset", "host": ["{{base_url}}"], "path": ["login", "reset"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"SH002\",\n  \"password\": \"newpassword123\"\n}"
            }
          },
          "response": []
        },
        {
          "name": "Forgot Password",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/login/forgot_password", "host": ["{{base_url}}"], "path": ["login", "forgot_password"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"SH002\",\n  \"phone_number\": \"5559876543\",\n  \"password\": \"newpassword123\"\n}"
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "User",
      "item": [
        {
          "name": "Get All Users",
          "request": {
            "method": "GET",
            "header": [],
            "url": { "raw": "{{base_url}}/user/get_all_user", "host": ["{{base_url}}"], "path": ["user", "get_all_user"] }
          },
          "response": []
        },
        {
          "name": "Get User by ID",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/user/get_by_id", "host": ["{{base_url}}"], "path": ["user", "get_by_id"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"{{shibir_id}}\"\n}"
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Announcement",
      "item": [
        {
          "name": "Get Announcements",
          "request": {
            "method": "GET",
            "header": [],
            "url": { "raw": "{{base_url}}/announcement/get_announcement", "host": ["{{base_url}}"], "path": ["announcement", "get_announcement"] }
          },
          "response": []
        },
        {
          "name": "Add / Edit Announcement",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/announcement/add_edit_announcement", "host": ["{{base_url}}"], "path": ["announcement", "add_edit_announcement"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"SH001\",\n  \"announcement\": \"Meeting at 5 PM in main hall.\"\n}"
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Attendance",
      "item": [
        {
          "name": "Post Attendance (QR scan)",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/attendance/post_attendance", "host": ["{{base_url}}"], "path": ["attendance", "post_attendance"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"SH001\",\n  \"yuvak_id\": \"SH002\"\n}"
            }
          },
          "response": []
        },
        {
          "name": "Get Attendance by Mandal",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/attendance/get_attendance_by_mandal", "host": ["{{base_url}}"], "path": ["attendance", "get_attendance_by_mandal"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"SH001\"\n}"
            }
          },
          "response": []
        },
        {
          "name": "Get All Attendance",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/attendance/get_all_attendance", "host": ["{{base_url}}"], "path": ["attendance", "get_all_attendance"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"SH001\"\n}"
            }
          },
          "response": []
        },
        {
          "name": "Get Attendance by Kshetra",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/attendance/get_attendance_by_kshetra", "host": ["{{base_url}}"], "path": ["attendance", "get_attendance_by_kshetra"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"SH001\"\n}"
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Quiz",
      "item": [
        {
          "name": "Get Questions",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/quiz/get_questions", "host": ["{{base_url}}"], "path": ["quiz", "get_questions"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"{{shibir_id}}\"\n}"
            }
          },
          "response": []
        },
        {
          "name": "Post Answers",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/quiz/post_answers", "host": ["{{base_url}}"], "path": ["quiz", "post_answers"] },
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"shibir_id\": \"{{shibir_id}}\",\n    \"quiz\": 1,\n    \"id\": 1,\n    \"selected_option\": \"Narmada\"\n  },\n  {\n    \"shibir_id\": \"{{shibir_id}}\",\n    \"quiz\": 1,\n    \"id\": 2,\n    \"selected_option\": \"Barygaza\"\n  },\n  {\n    \"shibir_id\": \"{{shibir_id}}\",\n    \"quiz\": 1,\n    \"id\": 3,\n    \"selected_option\": \"Gujarat\"\n  }\n]"
            }
          },
          "response": []
        },
        {
          "name": "Get Result by ID",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/quiz/get_result_by_id", "host": ["{{base_url}}"], "path": ["quiz", "get_result_by_id"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"{{shibir_id}}\"\n}"
            }
          },
          "response": []
        },
        {
          "name": "Get Total Marks",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/quiz/total_marks", "host": ["{{base_url}}"], "path": ["quiz", "total_marks"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"{{shibir_id}}\"\n}"
            }
          },
          "response": []
        },
        {
          "name": "Get Quiz Played (Leaderboard)",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/quiz/get_quiz_played", "host": ["{{base_url}}"], "path": ["quiz", "get_quiz_played"] },
            "body": {
              "mode": "raw",
              "raw": "{}"
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Quiz Admin",
      "item": [
        {
          "name": "List Questions (paginated)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/quiz_admin_1191820114/add_edit_quiz?page=1",
              "host": ["{{base_url}}"],
              "path": ["quiz_admin_1191820114", "add_edit_quiz"],
              "query": [{ "key": "page", "value": "1" }]
            }
          },
          "response": []
        },
        {
          "name": "Add Question",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/quiz_admin_1191820114/add_edit_quiz", "host": ["{{base_url}}"], "path": ["quiz_admin_1191820114", "add_edit_quiz"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"question_id\": \"\",\n  \"quiz\": \"bharuch\",\n  \"question\": \"Which river flows through Bharuch?\",\n  \"option_1\": \"Sabarmati\",\n  \"option_2\": \"Narmada\",\n  \"option_3\": \"Tapi\",\n  \"option_4\": \"Mahi\",\n  \"correct_answer\": \"Narmada\"\n}"
            }
          },
          "response": []
        },
        {
          "name": "Edit Question",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/quiz_admin_1191820114/add_edit_quiz", "host": ["{{base_url}}"], "path": ["quiz_admin_1191820114", "add_edit_quiz"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"question_id\": \"1\",\n  \"quiz\": \"bharuch\",\n  \"question\": \"Which river flows through Bharuch? (updated)\",\n  \"option_1\": \"Sabarmati\",\n  \"option_2\": \"Narmada\",\n  \"option_3\": \"Tapi\",\n  \"option_4\": \"Mahi\",\n  \"correct_answer\": \"Narmada\"\n}"
            }
          },
          "response": []
        },
        {
          "name": "Get Question by ID",
          "request": {
            "method": "GET",
            "header": [],
            "url": { "raw": "{{base_url}}/quiz_admin_1191820114/get_question/1", "host": ["{{base_url}}"], "path": ["quiz_admin_1191820114", "get_question", "1"] }
          },
          "response": []
        },
        {
          "name": "Filter Questions by Quiz Place",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/quiz_admin_1191820114/filter_question?quiz=1",
              "host": ["{{base_url}}"],
              "path": ["quiz_admin_1191820114", "filter_question"],
              "query": [{ "key": "quiz", "value": "1" }]
            }
          },
          "response": []
        },
        {
          "name": "Delete Question",
          "request": {
            "method": "GET",
            "header": [],
            "url": { "raw": "{{base_url}}/quiz_admin_1191820114/delete_question/1", "host": ["{{base_url}}"], "path": ["quiz_admin_1191820114", "delete_question", "1"] }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Lost and Found",
      "item": [
        {
          "name": "Get All Items",
          "request": {
            "method": "GET",
            "header": [],
            "url": { "raw": "{{base_url}}/lost_and_found/get_all", "host": ["{{base_url}}"], "path": ["lost_and_found", "get_all"] }
          },
          "response": []
        },
        {
          "name": "Post Lost / Found Item",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/lost_and_found/post_lost_and_found", "host": ["{{base_url}}"], "path": ["lost_and_found", "post_lost_and_found"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"{{shibir_id}}\",\n  \"description\": \"Found a blue water bottle near session hall.\"\n}"
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Sadgun",
      "item": [
        {
          "name": "Get All Sadgun",
          "request": {
            "method": "GET",
            "header": [],
            "url": { "raw": "{{base_url}}/sadgun/get_all", "host": ["{{base_url}}"], "path": ["sadgun", "get_all"] }
          },
          "response": []
        },
        {
          "name": "Post Sadgun",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/sadgun/post_sadgun", "host": ["{{base_url}}"], "path": ["sadgun", "post_sadgun"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"{{shibir_id}}\",\n  \"sadgun\": \"He helped clean up the dining area without being asked.\"\n}"
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Admin Panel",
      "item": [
        {
          "name": "Get Bus Leader Details",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{base_url}}/admin_panel/detail_for_bus_leader", "host": ["{{base_url}}"], "path": ["admin_panel", "detail_for_bus_leader"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shibir_id\": \"SH001\"\n}"
            }
          },
          "response": []
        }
      ]
    }
  ]
}
