{
	"info": {
		"_postman_id": "dental-clinic-api-001",
		"name": "Dental Clinic API",
		"description": "Complete API collection for Dental Clinic Backend",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Authentication",
			"item": [
				{
					"name": "Register Admin",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"username\": \"admin\",\n  \"email\": \"admin@dentalclinic.com\",\n  \"password\": \"admin123\"\n}"
						},
						"url": {
							"raw": "{{base_url}}/auth/register",
							"host": ["{{base_url}}"],
							"path": ["auth", "register"]
						}
					},
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"if (pm.response.code === 201) {",
									"    var jsonData = pm.response.json();",
									"    pm.environment.set(\"token\", jsonData.token);",
									"}"
								]
							}
						}
					]
				},
				{
					"name": "Login",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"email\": \"admin@dentalclinic.com\",\n  \"password\": \"admin123\"\n}"
						},
						"url": {
							"raw": "{{base_url}}/auth/login",
							"host": ["{{base_url}}"],
							"path": ["auth", "login"]
						}
					},
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"if (pm.response.code === 200) {",
									"    var jsonData = pm.response.json();",
									"    pm.environment.set(\"token\", jsonData.token);",
									"}"
								]
							}
						}
					]
				}
			]
		},
		{
			"name": "Appointments",
			"item": [
				{
					"name": "Book Appointment (Public)",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"patient_name\": \"John Doe\",\n  \"phone\": \"1234567890\",\n  \"email\": \"john@example.com\",\n  \"service_id\": 1,\n  \"preferred_date\": \"2024-12-25\",\n  \"preferred_time\": \"10:00\"\n}"
						},
						"url": {
							"raw": "{{base_url}}/appointments",
							"host": ["{{base_url}}"],
							"path": ["appointments"]
						}
					}
				},
				{
					"name": "Get All Appointments (Admin)",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/appointments?status=pending&page=1&limit=10",
							"host": ["{{base_url}}"],
							"path": ["appointments"],
							"query": [
								{
									"key": "status",
									"value": "pending"
								},
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "limit",
									"value": "10"
								}
							]
						}
					}
				},
				{
					"name": "Get Appointment by ID",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/appointments/1",
							"host": ["{{base_url}}"],
							"path": ["appointments", "1"]
						}
					}
				},
				{
					"name": "Update Appointment Status",
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"status\": \"confirmed\"\n}"
						},
						"url": {
							"raw": "{{base_url}}/appointments/1/status",
							"host": ["{{base_url}}"],
							"path": ["appointments", "1", "status"]
						}
					}
				}
			]
		},
		{
			"name": "Blogs",
			"item": [
				{
					"name": "Create Blog",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "title",
									"value": "How to Maintain Good Oral Health",
									"type": "text"
								},
								{
									"key": "excerpt",
									"value": "Learn the basics of maintaining healthy teeth and gums",
									"type": "text"
								},
								{
									"key": "content",
									"value": "Full blog content here...",
									"type": "text"
								},
								{
									"key": "author_name",
									"value": "Dr. Jane Smith",
									"type": "text"
								},
								{
									"key": "category",
									"value": "Dental Health",
									"type": "text"
								},
								{
									"key": "status",
									"value": "published",
									"type": "text"
								},
								{
									"key": "image",
									"type": "file",
									"src": []
								}
							]
						},
						"url": {
							"raw": "{{base_url}}/blogs",
							"host": ["{{base_url}}"],
							"path": ["blogs"]
						}
					}
				},
				{
					"name": "Get All Blogs",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base_url}}/blogs?page=1&limit=10",
							"host": ["{{base_url}}"],
							"path": ["blogs"],
							"query": [
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "limit",
									"value": "10"
								}
							]
						}
					}
				},
				{
					"name": "Get Blog by Slug",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base_url}}/blogs/how-to-maintain-good-oral-health",
							"host": ["{{base_url}}"],
							"path": ["blogs", "how-to-maintain-good-oral-health"]
						}
					}
				},
				{
					"name": "Update Blog",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "title",
									"value": "Updated Blog Title",
									"type": "text"
								},
								{
									"key": "content",
									"value": "Updated content",
									"type": "text"
								},
								{
									"key": "image",
									"type": "file",
									"src": []
								}
							]
						},
						"url": {
							"raw": "{{base_url}}/blogs/1",
							"host": ["{{base_url}}"],
							"path": ["blogs", "1"]
						}
					}
				},
				{
					"name": "Delete Blog",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/blogs/1",
							"host": ["{{base_url}}"],
							"path": ["blogs", "1"]
						}
					}
				}
			]
		},
		{
			"name": "Services",
			"item": [
				{
					"name": "Create Service",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "name",
									"value": "Teeth Cleaning",
									"type": "text"
								},
								{
									"key": "description",
									"value": "Professional teeth cleaning and polishing service",
									"type": "text"
								},
								{
									"key": "is_active",
									"value": "true",
									"type": "text"
								},
								{
									"key": "image",
									"type": "file",
									"src": []
								}
							]
						},
						"url": {
							"raw": "{{base_url}}/services",
							"host": ["{{base_url}}"],
							"path": ["services"]
						}
					}
				},
				{
					"name": "Get All Services",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base_url}}/services",
							"host": ["{{base_url}}"],
							"path": ["services"]
						}
					}
				},
				{
					"name": "Get Service by ID",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base_url}}/services/1",
							"host": ["{{base_url}}"],
							"path": ["services", "1"]
						}
					}
				},
				{
					"name": "Update Service",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "name",
									"value": "Updated Service Name",
									"type": "text"
								},
								{
									"key": "image",
									"type": "file",
									"src": []
								}
							]
						},
						"url": {
							"raw": "{{base_url}}/services/1",
							"host": ["{{base_url}}"],
							"path": ["services", "1"]
						}
					}
				},
				{
					"name": "Delete Service",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/services/1",
							"host": ["{{base_url}}"],
							"path": ["services", "1"]
						}
					}
				}
			]
		},
		{
			"name": "Doctors",
			"item": [
				{
					"name": "Create Doctor",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "name",
									"value": "Dr. Jane Smith",
									"type": "text"
								},
								{
									"key": "title",
									"value": "DDS",
									"type": "text"
								},
								{
									"key": "specialty",
									"value": "Orthodontics",
									"type": "text"
								},
								{
									"key": "biography",
									"value": "Dr. Jane Smith has over 10 years of experience...",
									"type": "text"
								},
								{
									"key": "email",
									"value": "jane.smith@dentalclinic.com",
									"type": "text"
								},
								{
									"key": "phone",
									"value": "1234567890",
									"type": "text"
								},
								{
									"key": "experience_years",
									"value": "10",
									"type": "text"
								},
								{
									"key": "is_active",
									"value": "true",
									"type": "text"
								},
								{
									"key": "image",
									"type": "file",
									"src": []
								}
							]
						},
						"url": {
							"raw": "{{base_url}}/doctors",
							"host": ["{{base_url}}"],
							"path": ["doctors"]
						}
					}
				},
				{
					"name": "Get All Doctors",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base_url}}/doctors",
							"host": ["{{base_url}}"],
							"path": ["doctors"]
						}
					}
				},
				{
					"name": "Get Doctor by ID",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base_url}}/doctors/1",
							"host": ["{{base_url}}"],
							"path": ["doctors", "1"]
						}
					}
				},
				{
					"name": "Update Doctor",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "name",
									"value": "Dr. Jane Smith Updated",
									"type": "text"
								},
								{
									"key": "image",
									"type": "file",
									"src": []
								}
							]
						},
						"url": {
							"raw": "{{base_url}}/doctors/1",
							"host": ["{{base_url}}"],
							"path": ["doctors", "1"]
						}
					}
				},
				{
					"name": "Delete Doctor",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/doctors/1",
							"host": ["{{base_url}}"],
							"path": ["doctors", "1"]
						}
					}
				}
			]
		},
		{
			"name": "Contact",
			"item": [
				{
					"name": "Submit Contact Message",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\",\n  \"phone\": \"1234567890\",\n  \"message\": \"I would like to schedule an appointment for a checkup.\"\n}"
						},
						"url": {
							"raw": "{{base_url}}/contact",
							"host": ["{{base_url}}"],
							"path": ["contact"]
						}
					}
				},
				{
					"name": "Get All Contact Messages",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/contact?page=1&limit=10",
							"host": ["{{base_url}}"],
							"path": ["contact"],
							"query": [
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "limit",
									"value": "10"
								}
							]
						}
					}
				}
			]
		},
		{
			"name": "Gallery",
			"item": [
				{
					"name": "Upload Gallery Image",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "title",
									"value": "Before and After - Teeth Whitening",
									"type": "text"
								},
								{
									"key": "category",
									"value": "before-after",
									"type": "text"
								},
								{
									"key": "image",
									"type": "file",
									"src": []
								}
							]
						},
						"url": {
							"raw": "{{base_url}}/gallery",
							"host": ["{{base_url}}"],
							"path": ["gallery"]
						}
					}
				},
				{
					"name": "Get Gallery Images",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base_url}}/gallery?category=before-after&page=1&limit=20",
							"host": ["{{base_url}}"],
							"path": ["gallery"],
							"query": [
								{
									"key": "category",
									"value": "before-after"
								},
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "limit",
									"value": "20"
								}
							]
						}
					}
				},
				{
					"name": "Delete Gallery Image",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{token}}"
							}
						],
						"url": {
							"raw": "{{base_url}}/gallery/1",
							"host": ["{{base_url}}"],
							"path": ["gallery", "1"]
						}
					}
				}
			]
		}
	],
	"variable": [
		{
			"key": "base_url",
			"value": "http://localhost:5000/api",
			"type": "string"
		},
		{
			"key": "token",
			"value": "",
			"type": "string"
		}
	]
}

