{
  "info": {
    "_postman_id": "06a86044-8c1b-4d44-b455-a466977f4fa8",
    "name": "Contact Page API",
    "description": "Admin get/update and client get. Admin authentication is temporarily disabled.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {"key": "base_url", "value": "http://192.168.1.36:8080/api/v1", "type": "string"},
    {"key": "contact_etag", "value": "", "type": "string"}
  ],
  "item": [
    {
      "name": "Admin",
      "item": [
        {
          "name": "Get Contact",
          "event": [{
            "listen": "test",
            "script": {"type": "text/javascript", "exec": [
              "const etag = pm.response.headers.get('ETag');",
              "if (etag) pm.collectionVariables.set('contact_etag', etag);"
            ]}
          }],
          "request": {
            "auth": {"type": "noauth"},
            "method": "GET",
            "header": [{"key": "Accept", "value": "application/json"}],
            "url": "{{base_url}}/admin/contact"
          }
        },
        {
          "name": "Update Contact",
          "request": {
            "auth": {"type": "noauth"},
            "method": "PUT",
            "header": [
              {"key": "Accept", "value": "application/json"},
              {"key": "Content-Type", "value": "application/json"},
              {"key": "If-Match", "value": "{{contact_etag}}"}
            ],
            "body": {
              "mode": "raw",
              "options": {"raw": {"language": "json"}},
              "raw": "{\n  \u0022hero\u0022: {\u0022badge\u0022: \u0022پشتیبانی فروشگاه\u0022, \u0022isOnline\u0022: true, \u0022title\u0022: \u0022از شنیدن صدای شما\u0022, \u0022highlight\u0022: \u0022خوشحال می‌شویم.\u0022, \u0022description\u0022: \u0022برای راهنمایی پیش از خرید، پیگیری سفارش یا هر پرسش دیگری، از راه‌های زیر با تیم ما در ارتباط باشید.\u0022, \u0022responseHours\u0022: \u0022شنبه تا پنج‌شنبه، ۹ تا ۱۸\u0022},\n  \u0022contactMethods\u0022: {\n    \u0022phone\u0022: {\u0022label\u0022: \u0022تماس با پشتیبانی\u0022, \u0022value\u0022: \u0022021-00000000\u0022, \u0022href\u0022: \u0022tel:02100000000\u0022, \u0022description\u0022: \u0022برای پاسخ سریع‌تر با ما تماس بگیرید\u0022, \u0022icon\u0022: \u0022call\u0022, \u0022isActive\u0022: true},\n    \u0022email\u0022: {\u0022label\u0022: \u0022ارسال ایمیل\u0022, \u0022value\u0022: \u0022support@example.com\u0022, \u0022href\u0022: \u0022mailto:support@example.com\u0022, \u0022description\u0022: \u0022مناسب پیشنهادها و مکاتبات\u0022, \u0022icon\u0022: \u0022mail\u0022, \u0022isActive\u0022: true}\n  },\n  \u0022location\u0022: {\u0022title\u0022: \u0022نشانی فروشگاه\u0022, \u0022address\u0022: \u0022تهران، خیابان نمونه، پلاک ۱۲\u0022, \u0022map\u0022: {\u0022provider\u0022: \u0022openstreetmap\u0022, \u0022latitude\u0022: 35.7219, \u0022longitude\u0022: 51.3347, \u0022zoom\u0022: 15}, \u0022isActive\u0022: true},\n  \u0022supportLinks\u0022: {\u0022title\u0022: \u0022شاید پاسخ همین نزدیکی باشد\u0022, \u0022description\u0022: \u0022برای سوال‌های متداول یا پیگیری دقیق‌تر درخواست‌ها، از مسیر مناسب استفاده کنید.\u0022, \u0022items\u0022: [{\u0022label\u0022: \u0022سوالات متداول\u0022, \u0022href\u0022: \u0022/faq\u0022, \u0022icon\u0022: \u0022message-question\u0022, \u0022isActive\u0022: true}, {\u0022label\u0022: \u0022ثبت و پیگیری درخواست\u0022, \u0022href\u0022: \u0022/account/tickets\u0022, \u0022icon\u0022: \u0022box\u0022, \u0022isActive\u0022: true}], \u0022footerNote\u0022: \u0022تیم ما در ساعات کاری، در سریع‌ترین زمان ممکن پاسخ‌گوی شماست.\u0022}\n}"
            },
            "url": "{{base_url}}/admin/contact"
          }
        }
      ]
    },
    {
      "name": "Client",
      "item": [{
        "name": "Get Contact",
        "request": {
          "auth": {"type": "noauth"},
          "method": "GET",
          "header": [{"key": "Accept", "value": "application/json"}],
          "url": "{{base_url}}/contact"
        }
      }]
    }
  ]
}
