{
    "info": {
        "name": "Naqupos Backend API",
        "description": "API Collection for Naqupos Spa Booking System",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{jwt_token}}",
                "type": "string"
            }
        ]
    },
    "item": [
        {
            "name": "Auth",
            "item": [
                {
                    "name": "Register Customer",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"name\": \"Test Customer\",\n  \"email\": \"test@customer.com\",\n  \"phone\": \"081234567899\",\n  \"birth_date\": \"1995-06-20\",\n  \"address\": \"Solo, Jawa Tengah\",\n  \"password\": \"password123\",\n  \"password_confirmation\": \"password123\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/auth/register",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "auth",
                                "register"
                            ]
                        }
                    }
                },
                {
                    "name": "Login",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"login\": \"admin@naqupos.com\",\n  \"password\": \"admin123\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/auth/login",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "auth",
                                "login"
                            ]
                        }
                    }
                },
                {
                    "name": "Get Current User",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/auth/me",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "auth",
                                "me"
                            ]
                        }
                    }
                },
                {
                    "name": "Logout",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/auth/logout",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "auth",
                                "logout"
                            ]
                        }
                    }
                }
            ]
        },
        {
            "name": "Services",
            "item": [
                {
                    "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": "Customer - Bookings",
            "item": [
                {
                    "name": "Check Availability",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"branch_id\": 1,\n  \"booking_date\": \"2026-01-15\",\n  \"start_time\": \"10:00\",\n  \"duration\": 90\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/customer/bookings/check-availability",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "customer",
                                "bookings",
                                "check-availability"
                            ]
                        }
                    }
                },
                {
                    "name": "Create Booking",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"branch_id\": 1,\n  \"service_id\": 3,\n  \"therapist_id\": 1,\n  \"room_id\": 5,\n  \"booking_date\": \"2026-01-15\",\n  \"start_time\": \"10:00\",\n  \"notes\": \"Prefer lavender aromatherapy\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/customer/bookings",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "customer",
                                "bookings"
                            ]
                        }
                    }
                },
                {
                    "name": "Get My Bookings",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/customer/bookings",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "customer",
                                "bookings"
                            ]
                        }
                    }
                },
                {
                    "name": "Get Booking Detail",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/customer/bookings/1",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "customer",
                                "bookings",
                                "1"
                            ]
                        }
                    }
                },
                {
                    "name": "Cancel Booking",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/customer/bookings/1/cancel",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "customer",
                                "bookings",
                                "1",
                                "cancel"
                            ]
                        }
                    }
                }
            ]
        },
        {
            "name": "Admin - Dashboard",
            "item": [
                {
                    "name": "Get Dashboard Stats",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/admin/dashboard/stats",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "admin",
                                "dashboard",
                                "stats"
                            ]
                        }
                    }
                },
                {
                    "name": "Get All Bookings (Admin)",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/admin/bookings",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "admin",
                                "bookings"
                            ]
                        }
                    }
                }
            ]
        }
    ],
    "variable": [
        {
            "key": "base_url",
            "value": "http://localhost:8000/api/v1",
            "type": "string"
        },
        {
            "key": "jwt_token",
            "value": "",
            "type": "string"
        }
    ]
}