{
    "info": {
      "name": "Auth Microservice API",
      "_postman_id": "auth-microservice-collection",
      "description": "API collection for Auth Microservice",
      "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
      {
        "name": "Register User",
        "request": {
          "method": "POST",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": {
            "mode": "raw",
            "raw": "{\n\t\"username\": \"testuser\",\n\t\"password\": \"testpassword\",\n\t\"role\": \"PMS\",\n\t\"email\": \"testuser@example.com\"\n}"
          },
          "url": {
            "raw": "{{base_url}}/auth/register",
            "host": ["{{base_url}}"],
            "path": ["auth", "register"]
          }
        }
      },
      {
        "name": "Login User",
        "request": {
          "method": "POST",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": {
            "mode": "raw",
            "raw": "{\n\t\"username\": \"testuser\",\n\t\"password\": \"testpassword\"\n}"
          },
          "url": {
            "raw": "{{base_url}}/auth/login",
            "host": ["{{base_url}}"],
            "path": ["auth", "login"]
          }
        }
      },
      {
        "name": "Refresh Token",
        "request": {
          "method": "POST",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": {
            "mode": "raw",
            "raw": "{\n\t\"refreshToken\": \"your_refresh_token_here\"\n}"
          },
          "url": {
            "raw": "{{base_url}}/auth/refresh-token",
            "host": ["{{base_url}}"],
            "path": ["auth", "refresh-token"]
          }
        }
      },
      {
        "name": "Logout User",
        "request": {
          "method": "POST",
          "header": [
            {
              "key": "Authorization",
              "value": "Bearer {{access_token}}"
            }
          ],
          "url": {
            "raw": "{{base_url}}/auth/logout",
            "host": ["{{base_url}}"],
            "path": ["auth", "logout"]
          }
        }
      },
      {
        "name": "Forgot Password",
        "request": {
          "method": "POST",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": {
            "mode": "raw",
            "raw": "{\n\t\"email\": \"testuser@example.com\"\n}"
          },
          "url": {
            "raw": "{{base_url}}/auth/forgot-password",
            "host": ["{{base_url}}"],
            "path": ["auth", "forgot-password"]
          }
        }
      },
      {
        "name": "Reset Password",
        "request": {
          "method": "POST",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": {
            "mode": "raw",
            "raw": "{\n\t\"token\": \"reset_token_here\",\n\t\"newPassword\": \"new_password_here\"\n}"
          },
          "url": {
            "raw": "{{base_url}}/auth/reset-password",
            "host": ["{{base_url}}"],
            "path": ["auth", "reset-password"]
          }
        }
      },
      {
        "name": "Change Password",
        "request": {
          "method": "PUT",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Authorization",
              "value": "Bearer {{access_token}}"
            }
          ],
          "body": {
            "mode": "raw",
            "raw": "{\n\t\"currentPassword\": \"current_password_here\",\n\t\"newPassword\": \"new_password_here\"\n}"
          },
          "url": {
            "raw": "{{base_url}}/auth/change-password",
            "host": ["{{base_url}}"],
            "path": ["auth", "change-password"]
          }
        }
      },
      {
        "name": "Verify Token",
        "request": {
          "method": "POST",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Authorization",
              "value": "Bearer {{access_token}}"
            }
          ],
          "body": {
            "mode": "raw",
            "raw": "{\n\t\"service\": \"PMS\"\n}"
          },
          "url": {
            "raw": "{{base_url}}/auth/verify",
            "host": ["{{base_url}}"],
            "path": ["auth", "verify"]
          }
        }
      },
      {
        "name": "Get User Profile",
        "request": {
          "method": "GET",
          "header": [
            {
              "key": "Authorization",
              "value": "Bearer {{access_token}}"
            }
          ],
          "url": {
            "raw": "{{base_url}}/auth/profile",
            "host": ["{{base_url}}"],
            "path": ["auth", "profile"]
          }
        }
      },
      {
        "name": "Update User Profile",
        "request": {
          "method": "PUT",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Authorization",
              "value": "Bearer {{access_token}}"
            }
          ],
          "body": {
            "mode": "raw",
            "raw": "{\n\t\"email\": \"newemail@example.com\",\n\t\"name\": \"New Name\"\n}"
          },
          "url": {
            "raw": "{{base_url}}/auth/profile",
            "host": ["{{base_url}}"],
            "path": ["auth", "profile"]
          }
        }
      },
      {
        "name": "Health Check",
        "request": {
          "method": "GET",
          "url": {
            "raw": "{{base_url}}/auth/health",
            "host": ["{{base_url}}"],
            "path": ["auth", "health"]
          }
        }
      }
    ],
    "variable": [
      {
        "key": "base_url",
        "value": "http://localhost:3000",
        "type": "string"
      },
      {
        "key": "access_token",
        "value": "your_access_token_here",
        "type": "string"
      }
    ]
  }