{
  "info": {
    "name": "Ilmwave Backend API",
    "description": "Complete API collection for Ilmwave content management system",
    "version": "1.0.0",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "http://localhost:3000/v1",
      "type": "string"
    },
    {
      "key": "accessToken",
      "value": "",
      "type": "string"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{accessToken}}",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "Authentication",
      "item": [
        {
          "name": "Register User",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"user@ilmwave.com\",\n  \"password\": \"password123\",\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/auth/register",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "register"]
            }
          }
        },
        {
          "name": "Login User",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "if (pm.response.code === 200) {",
                  "    const response = pm.response.json();",
                  "    pm.collectionVariables.set('accessToken', response.data.access_token);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"admin@ilmwave.com\",\n  \"password\": \"admin123456\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/auth/login",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "login"]
            }
          }
        }
      ]
    },
    {
      "name": "Home Page Content",
      "item": [
        {
          "name": "Get Home Page Content",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/admin/content/home-page",
              "host": ["{{baseUrl}}"],
              "path": ["admin", "content", "home-page"]
            }
          }
        },
        {
          "name": "Update Home Page Content",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"hero\": {\n    \"headline\": \"Empowering Your Global Educational Journey\",\n    \"subtitle\": \"Updated subtitle text for testing...\",\n    \"primaryCta\": {\n      \"label\": \"Start Assessment\",\n      \"link\": \"/assessment\"\n    },\n    \"secondaryCta\": {\n      \"label\": \"View Services\",\n      \"link\": \"/services\"\n    },\n    \"metrics\": [\n      {\n        \"value\": \"98%\",\n        \"label\": \"Visa Success Rate\"\n      },\n      {\n        \"value\": \"500+\",\n        \"label\": \"Partner Institutions\"\n      },\n      {\n        \"value\": \"12,000+\",\n        \"label\": \"Students Placed\"\n      }\n    ]\n  },\n  \"foundation\": {\n    \"title\": \"A Foundation of Professional Excellence\",\n    \"subtitle\": \"Updated foundation subtitle for testing...\",\n    \"pillars\": [\n      {\n        \"id\": 1,\n        \"icon\": \"Shield\",\n        \"title\": \"Regulated Advisory\",\n        \"description\": \"Updated description for testing...\"\n      },\n      {\n        \"id\": 2,\n        \"icon\": \"FastForward\",\n        \"title\": \"Streamlined Process\",\n        \"description\": \"Optimized application workflows designed to reduce waiting times.\"\n      }\n    ]\n  },\n  \"seo\": {\n    \"metaTitle\": \"Updated Meta Title for Testing\",\n    \"metaDescription\": \"Updated meta description for testing...\"\n  }\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/admin/content/home-page",
              "host": ["{{baseUrl}}"],
              "path": ["admin", "content", "home-page"]
            }
          }
        },
        {
          "name": "Upload Hero Image",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"imageUrl\": \"https://i.ibb.co/sample/hero-image.jpg\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/admin/content/home-page/hero-image",
              "host": ["{{baseUrl}}"],
              "path": ["admin", "content", "home-page", "hero-image"]
            }
          }
        }
      ]
    },
    {
      "name": "Services Page Content",
      "item": [
        {
          "name": "Get Services Page Content",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/admin/content/services-page",
              "host": ["{{baseUrl}}"],
              "path": ["admin", "content", "services-page"]
            }
          }
        },
        {
          "name": "Update Services Page Content",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"hero\": {\n    \"headline\": \"Navigate Your Global Education Journey\",\n    \"subtitle\": \"Updated expert consultancy services...\",\n    \"primaryCta\": {\n      \"label\": \"Get a Free Assessment\",\n      \"link\": \"#assessment\"\n    },\n    \"secondaryCta\": {\n      \"label\": \"View Success Stories\",\n      \"link\": \"#stories\"\n    },\n    \"statistics\": [\"15K+ Students\", \"95% Success Rate\", \"50+ Countries\"]\n  },\n  \"educationHubs\": {\n    \"eyebrow\": \"Our Destinations\",\n    \"headline\": \"Global Education Hubs\",\n    \"subtitle\": \"Explore our specialized services...\",\n    \"destinations\": []\n  },\n  \"process\": {\n    \"eyebrow\": \"Our Methodology\",\n    \"headline\": \"A Seamless 5-Step Process\",\n    \"subtitle\": \"We follow a rigorous, transparent methodology...\",\n    \"steps\": [\n      {\n        \"step\": \"01\",\n        \"title\": \"Profile Evaluation\",\n        \"description\": \"Deep dive into your academic history...\"\n      }\n    ]\n  },\n  \"mentorship\": {\n    \"eyebrow\": \"Personalized Mentorship\",\n    \"headline\": \"Beyond Just Applications\",\n    \"description\": \"We don't just process papers; we build futures...\",\n    \"features\": [\n      \"One-on-one counseling sessions\",\n      \"Document preparation assistance\"\n    ],\n    \"stats\": [\n      {\n        \"title\": \"98% Visa Success Rate\",\n        \"description\": \"Our meticulous review process ensures...\"\n      }\n    ],\n    \"cta\": {\n      \"headline\": \"Ready to Start Your International Journey?\",\n      \"subtitle\": \"Don't leave your dreams to chance...\",\n      \"primaryButton\": \"Book Initial Consultation\",\n      \"secondaryButton\": \"Return to Home\"\n    }\n  },\n  \"seo\": {\n    \"metaTitle\": \"Study Abroad & Visa Services | Ilmwave UK & Europe\",\n    \"metaDescription\": \"Comprehensive guidance for Tier 4 UK visas...\"\n  }\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/admin/content/services-page",
              "host": ["{{baseUrl}}"],
              "path": ["admin", "content", "services-page"]
            }
          }
        },
        {
          "name": "Add New Destination",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"title\": \"Study in Australia\",\n  \"description\": \"World-class education with excellent post-study work opportunities and quality of life.\",\n  \"features\": [\n    \"Student Visa 500 Applications\",\n    \"Temporary Graduate Visa 485\",\n    \"OSHC Health Insurance\",\n    \"Post-Arrival Support\"\n  ],\n  \"ctaText\": \"Explore Australia →\",\n  \"slug\": \"australia\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/admin/content/services-page/destinations",
              "host": ["{{baseUrl}}"],
              "path": ["admin", "content", "services-page", "destinations"]
            }
          }
        },
        {
          "name": "Remove Destination",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/admin/content/services-page/destinations/:destinationId",
              "host": ["{{baseUrl}}"],
              "path": ["admin", "content", "services-page", "destinations", ":destinationId"],
              "variable": [
                {
                  "key": "destinationId",
                  "value": "destination-id-here"
                }
              ]
            }
          }
        },
        {
          "name": "Upload Services Images",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"hero\",\n  \"imageUrl\": \"https://i.ibb.co/sample/services-hero.jpg\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/admin/content/services-page/images",
              "host": ["{{baseUrl}}"],
              "path": ["admin", "content", "services-page", "images"]
            }
          }
        }
      ]
    },
    {
      "name": "Publishing",
      "item": [
        {
          "name": "Publish Content",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"pages\": [\"home-page\", \"services-page\"],\n  \"environment\": \"production\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/admin/content/publish",
              "host": ["{{baseUrl}}"],
              "path": ["admin", "content", "publish"]
            }
          }
        },
        {
          "name": "Get Publish History",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/admin/content/publish-history?limit=10&offset=0",
              "host": ["{{baseUrl}}"],
              "path": ["admin", "content", "publish-history"],
              "query": [
                {
                  "key": "limit",
                  "value": "10"
                },
                {
                  "key": "offset",
                  "value": "0"
                }
              ]
            }
          }
        }
      ]
    }
  ]
}