{
	"info": {
		"_postman_id": "random-uuid",
		"name": "Pathshalaa Tutor APIs (Complete)",
		"description": "Collection of all APIs related to tutor role (role_id=3) from Swagger documentation",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Authentication",
			"item": [
				{
					"name": "Login Tutor",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"email_or_mobile\": \"tutor@example.com\",\n    \"password\": \"123456\",\n    \"device_token_id\": \"your_device_token_here\"\n}"
						},
						"url": {
							"raw": "{{base_url}}/api/tutor/login",
							"path": ["api", "tutor", "login"]
						},
						"description": "Login with mobile number or email and password"
					}
				},
				{
					"name": "Register Tutor",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"name\": \"John Doe\",\n    \"email\": \"tutor@example.com\",\n    \"mobile\": \"1234567890\",\n    \"password\": \"123456\"\n}"
						},
						"url": {
							"raw": "{{base_url}}/api/tutor/register",
							"path": ["api", "tutor", "register"]
						},
						"description": "Register a new tutor"
					}
				},
				{
					"name": "Verify OTP",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"mobile\": \"1234567890\",\n    \"otp\": \"123456\"\n}"
						},
						"url": {
							"raw": "{{base_url}}/api/tutor/verify-otp",
							"path": ["api", "tutor", "verify-otp"]
						},
						"description": "Verify OTP for tutor registration or login"
					}
				}
			]
		},
		{
			"name": "Profile Management",
			"item": [
				{
					"name": "Change Password",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"old_password\": \"old_password\",\n    \"new_password\": \"new_password\",\n    \"confirm_password\": \"new_password\"\n}"
						},
						"url": {
							"raw": "{{base_url}}/api/tutor/change-password",
							"path": ["api", "tutor", "change-password"]
						},
						"description": "Change tutor's password"
					}
				},
				{
					"name": "Update Profile Details",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"name\": \"John Doe\",\n    \"email\": \"tutor@example.com\",\n    \"mobile\": \"1234567890\",\n    \"profile_image\": \"image_file\"\n}"
						},
						"url": {
							"raw": "{{base_url}}/api/tutor/update-profile-detail",
							"path": ["api", "tutor", "update-profile-detail"]
						},
						"description": "Update tutor's profile details"
					}
				}
			]
		},
		{
			"name": "Dashboard & Statistics",
			"item": [
				{
					"name": "Get Dashboard",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/tutor/dashboard",
							"path": ["api", "tutor", "dashboard"]
						},
						"description": "Get tutor dashboard statistics"
					}
				}
			]
		},
		{
			"name": "School Management",
			"item": [
				{
					"name": "Get School List",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/tutor/login-as-school-list",
							"path": ["api", "tutor", "login-as-school-list"]
						},
						"description": "Get list of schools associated with tutor"
					}
				},
				{
					"name": "Login As School",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"school_id\": \"1\"\n}"
						},
						"url": {
							"raw": "{{base_url}}/api/tutor/login-as-school-update",
							"path": ["api", "tutor", "login-as-school-update"]
						},
						"description": "Login as a specific school"
					}
				}
			]
		},
		{
			"name": "Bank & Wallet Management",
			"item": [
				{
					"name": "Get Redeemed Request History",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/tutor/redeemed-request-history",
							"path": ["api", "tutor", "redeemed-request-history"]
						},
						"description": "Get history of wallet redemption requests"
					}
				},
				{
					"name": "Add Redeemed Request",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/tutor/add-redeemed-request",
							"path": ["api", "tutor", "add-redeemed-request"]
						},
						"description": "Add a new redemption request"
					}
				},
				{
					"name": "Get Bank Details",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/tutor/get-bank-detail",
							"path": ["api", "tutor", "get-bank-detail"]
						},
						"description": "Get tutor's bank details"
					}
				},
				{
					"name": "Add Bank Details",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"account_holder_name\": \"John Doe\",\n    \"account_number\": \"1234567890\",\n    \"ifsc_code\": \"ABCD0001234\",\n    \"bank_name\": \"Example Bank\"\n}"
						},
						"url": {
							"raw": "{{base_url}}/api/tutor/add-bank-detail",
							"path": ["api", "tutor", "add-bank-detail"]
						},
						"description": "Add tutor's bank details"
					}
				}
			]
		},
		{
			"name": "Student Management",
			"item": [
				{
					"name": "Get Freelancer Students List",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/tutor/freelancer-students-list",
							"path": ["api", "tutor", "freelancer-students-list"]
						},
						"description": "Get list of freelancer students"
					}
				},
				{
					"name": "Enroll Freelancer Student",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/tutor/freelancer-student-enrol",
							"path": ["api", "tutor", "freelancer-student-enrol"]
						},
						"description": "Enroll a freelancer student"
					}
				},
				{
					"name": "Add Student",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/tutor/student_add",
							"path": ["api", "tutor", "student_add"]
						},
						"description": "Add a new student"
					}
				}
			]
		},
		{
			"name": "Test Series Management",
			"item": [
				{
					"name": "Get Categories for Test Series",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/tutor/get-category-for-add-testseries",
							"path": ["api", "tutor", "get-category-for-add-testseries"]
						},
						"description": "Get categories for adding test series"
					}
				},
				{
					"name": "Add Test Series",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/tutor/add-new-testseries",
							"path": ["api", "tutor", "add-new-testseries"]
						},
						"description": "Add a new test series"
					}
				},
				{
					"name": "Get Freelancer Test Series List",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/tutor/freelancer-testseries-list",
							"path": ["api", "tutor", "freelancer-testseries-list"]
						},
						"description": "Get list of freelancer test series"
					}
				},
				{
					"name": "Assign Test Series to Students",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/tutor/freelancer-testseries-assign-to-students",
							"path": ["api", "tutor", "freelancer-testseries-assign-to-students"]
						},
						"description": "Assign test series to students"
					}
				},
				{
					"name": "Update Tutor Test Series",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/tutor/update-tutor-testseries",
							"path": ["api", "tutor", "update-tutor-testseries"]
						},
						"description": "Update an existing test series"
					}
				}
			]
		}
	],
	"variable": [
		{
			"key": "base_url",
			"value": "http://localhost",
			"type": "string"
		}
	]
}