{
	"info": {
		"_postman_id": "classvision-api-collection",
		"name": "ClassVision AI API",
		"description": "Postman collection for testing ClassVision AI Backend APIs.",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Auth",
			"item": [
				{
					"name": "Login",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"institution_id\": \"admin\",\n    \"password\": \"admin123\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/auth/login.php",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"auth",
								"login.php"
							]
						}
					},
					"response": []
				},
				{
					"name": "Signup",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"name\": \"Test User\",\n    \"institution_id\": \"test01\",\n    \"password\": \"123456\",\n    \"role\": \"FACULTY\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/auth/signup.php",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"auth",
								"signup.php"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Admin",
			"item": [
				{
					"name": "Get Dashboard Stats",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{BASE_URL}}/admin/dashboard_stats.php",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"admin",
								"dashboard_stats.php"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get System Status",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{BASE_URL}}/admin/get_system_status.php",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"admin",
								"get_system_status.php"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "AI Logic",
			"item": [
				{
					"name": "Save Attendance (AI)",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "course_code",
									"value": "CS101",
									"type": "text"
								},
								{
									"key": "image",
									"type": "file",
									"src": []
								}
							]
						},
						"url": {
							"raw": "{{BASE_URL}}/save_attendance_ai.php",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"save_attendance_ai.php"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Mismatches",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{BASE_URL}}/get_mismatches.php",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"get_mismatches.php"
							]
						}
					},
					"response": []
				}
			]
		}
	],
	"variable": [
		{
			"key": "BASE_URL",
			"value": "http://192.168.43.2/classvision/api"
		}
	]
}
