{
  "info": {
    "name": "System Settings APIs",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "http://127.0.0.1:8000/api/v1"
    },
    {
      "key": "token",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Public - Get System Settings",
      "request": {
        "method": "GET",
        "header": [
          { "key": "Accept", "value": "application/json" }
        ],
        "url": {
          "raw": "{{base_url}}/public/system-settings",
          "host": ["{{base_url}}"],
          "path": ["public", "system-settings"]
        }
      }
    },
    {
      "name": "Admin - Get All System Settings",
      "request": {
        "method": "GET",
        "header": [
          { "key": "Accept", "value": "application/json" },
          { "key": "Authorization", "value": "Bearer {{token}}" }
        ],
        "url": {
          "raw": "{{base_url}}/system-settings",
          "host": ["{{base_url}}"],
          "path": ["system-settings"]
        }
      }
    },
    {
      "name": "Admin - Update System Settings",
      "request": {
        "method": "PUT",
        "header": [
          { "key": "Accept", "value": "application/json" },
          { "key": "Content-Type", "value": "application/json" },
          { "key": "Authorization", "value": "Bearer {{token}}" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"portal_name\": \"EduHub – School Management System\",\n  \"portal_short_name\": \"EduHub\",\n  \"portal_tagline\": \"Empowering Education Through Technology\",\n  \"portal_email\": \"info@eduhub.digital\",\n  \"portal_phone\": \"0543-591555\",\n  \"portal_whatsapp\": \"0335-0591555\",\n  \"portal_address\": \"Opposite Shell Petrol Pump, Main Chakwal Road, Dhudial\",\n  \"portal_city\": \"Dhudial\",\n  \"portal_country\": \"Pakistan\",\n  \"portal_theme_color\": \"#9b1b8e\",\n  \"voucher_header_text\": \"EDUHUB\",\n  \"portal_footer_text\": \"Powered by Softhub.digital\"\n}"
        },
        "url": {
          "raw": "{{base_url}}/system-settings",
          "host": ["{{base_url}}"],
          "path": ["system-settings"]
        }
      }
    },
    {
      "name": "Admin - Upload Logo",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Accept", "value": "application/json" },
          { "key": "Authorization", "value": "Bearer {{token}}" }
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "logo",
              "type": "file",
              "src": ""
            }
          ]
        },
        "url": {
          "raw": "{{base_url}}/system-settings/upload-logo",
          "host": ["{{base_url}}"],
          "path": ["system-settings", "upload-logo"]
        }
      }
    },
    {
      "name": "Admin - Remove Logo",
      "request": {
        "method": "DELETE",
        "header": [
          { "key": "Accept", "value": "application/json" },
          { "key": "Authorization", "value": "Bearer {{token}}" }
        ],
        "url": {
          "raw": "{{base_url}}/system-settings/remove-logo",
          "host": ["{{base_url}}"],
          "path": ["system-settings", "remove-logo"]
        }
      }
    }
  ]
}
