{
  "info": {
    "name": "Project Jahit API - Email & Password",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "API untuk verifikasi email dan reset password pada Project Jahit"
  },
  "item": [
    {
      "name": "1. Autentikasi",
      "item": [
        {
          "name": "Login Pelanggan",
          "request": {
            "method": "POST",
            "url": {
              "raw": "{{base_url}}/pelanggan/login",
              "host": ["{{base_url}}"],
              "path": ["pelanggan", "login"]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"email\": \"{{email}}\",\n    \"password\": \"{{password}}\"\n}"
            },
            "description": "Login sebagai pelanggan untuk mendapatkan token autentikasi"
          },
          "response": []
        },
        {
          "name": "Login Penjahit",
          "request": {
            "method": "POST",
            "url": {
              "raw": "{{base_url}}/penjahit/login",
              "host": ["{{base_url}}"],
              "path": ["penjahit", "login"]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"email\": \"{{email}}\",\n    \"password\": \"{{password}}\"\n}"
            },
            "description": "Login sebagai penjahit untuk mendapatkan token autentikasi"
          },
          "response": []
        }
      ],
      "description": "Endpoint untuk autentikasi pengguna"
    },
    {
      "name": "2. Verifikasi Email",
      "item": [
        {
          "name": "Kirim Email Verifikasi",
          "request": {
            "method": "POST",
            "url": {
              "raw": "{{base_url}}/email/verification-notification",
              "host": ["{{base_url}}"],
              "path": ["email", "verification-notification"]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              }
            ],
            "description": "Mengirim email verifikasi ke alamat email pengguna"
          },
          "response": []
        },
        {
          "name": "Kirim Ulang Email Verifikasi",
          "request": {
            "method": "POST",
            "url": {
              "raw": "{{base_url}}/email/verification-resend",
              "host": ["{{base_url}}"],
              "path": ["email", "verification-resend"]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              }
            ],
            "description": "Mengirim ulang email verifikasi ke alamat email pengguna"
          },
          "response": []
        },
        {
          "name": "Verifikasi Email (Manual)",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{base_url}}/email/verify/{{user_id}}/{{hash}}?expires={{expires}}&signature={{signature}}",
              "host": ["{{base_url}}"],
              "path": ["email", "verify", "{{user_id}}", "{{hash}}"],
              "query": [
                {
                  "key": "expires",
                  "value": "{{expires}}"
                },
                {
                  "key": "signature",
                  "value": "{{signature}}"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "description": "Verifikasi email dengan link yang dikirim ke email (biasanya diakses langsung dari email)"
          },
          "response": []
        }
      ],
      "description": "Endpoint untuk verifikasi alamat email pengguna"
    },
    {
      "name": "3. Reset Password",
      "item": [
        {
          "name": "Request Reset Password Pelanggan",
          "request": {
            "method": "POST",
            "url": {
              "raw": "{{base_url}}/pelanggan/forgot-password",
              "host": ["{{base_url}}"],
              "path": ["pelanggan", "forgot-password"]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"email\": \"{{email}}\"\n}"
            },
            "description": "Meminta PIN reset password untuk pelanggan"
          },
          "response": []
        },
        {
          "name": "Request Reset Password Penjahit",
          "request": {
            "method": "POST",
            "url": {
              "raw": "{{base_url}}/penjahit/forgot-password",
              "host": ["{{base_url}}"],
              "path": ["penjahit", "forgot-password"]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"email\": \"{{email}}\"\n}"
            },
            "description": "Meminta PIN reset password untuk penjahit"
          },
          "response": []
        },
        {
          "name": "Reset Password Pelanggan",
          "request": {
            "method": "POST",
            "url": {
              "raw": "{{base_url}}/pelanggan/reset-password",
              "host": ["{{base_url}}"],
              "path": ["pelanggan", "reset-password"]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"email\": \"{{email}}\",\n    \"password\": \"{{new_password}}\",\n    \"password_confirmation\": \"{{new_password}}\",\n    \"pin\": \"{{reset_pin}}\"\n}"
            },
            "description": "Reset password pelanggan dengan PIN yang diterima via email"
          },
          "response": []
        },
        {
          "name": "Reset Password Penjahit",
          "request": {
            "method": "POST",
            "url": {
              "raw": "{{base_url}}/penjahit/reset-password",
              "host": ["{{base_url}}"],
              "path": ["penjahit", "reset-password"]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"email\": \"{{email}}\",\n    \"password\": \"{{new_password}}\",\n    \"password_confirmation\": \"{{new_password}}\",\n    \"pin\": \"{{reset_pin}}\"\n}"
            },
            "description": "Reset password penjahit dengan PIN yang diterima via email"
          },
          "response": []
        }
      ],
      "description": "Endpoint untuk reset password pengguna"
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "http://localhost:8000/api"
    },
    {
      "key": "email",
      "value": "your.email@example.com"
    },
    {
      "key": "password",
      "value": "your_password"
    },
    {
      "key": "token",
      "value": "your_auth_token"
    },
    {
      "key": "new_password",
      "value": "your_new_password"
    },
    {
      "key": "reset_pin",
      "value": "123456"
    }
  ]
} 