{
  "info": {
    "name": "Random User Management System API",
    "description": "Collection for testing Random User Management System APIs",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Root",
      "item": [
        {
          "name": "Get API Info",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "http://localhost:3000/",
              "protocol": "http",
              "host": ["localhost"],
              "port": "3000",
              "path": ["/"]
            },
            "description": "Returns API message"
          }
        }
      ]
    },
    {
      "name": "Random Users",
      "item": [
        {
          "name": "Get Random Users",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "http://localhost:3000/api/random-users",
              "protocol": "http",
              "host": ["localhost"],
              "port": "3000",
              "path": ["api", "random-users"]
            },
            "description": "Fetch random users"
          }
        }
      ]
    },
    {
      "name": "Users Management",
      "item": [
        {
          "name": "Get All Users",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "http://localhost:3000/api/users",
              "protocol": "http",
              "host": ["localhost"],
              "port": "3000",
              "path": ["api", "users"]
            },
            "description": "Get all users"
          }
        },
        {
          "name": "Create User",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"email\": \"john.doe@example.com\",\n  \"phone\": \"123-456-7890\",\n  \"address\": \"123 Main St\",\n  \"avatar\": \"https://randomuser.me/api/portraits/men/1.jpg\",\n  \"gender\": \"male\",\n  \"country\": \"USA\",\n  \"registered\": \"2024-01-15T09:30:00.000Z\"\n}"
            },
            "url": {
              "raw": "http://localhost:3000/api/users",
              "protocol": "http",
              "host": ["localhost"],
              "port": "3000",
              "path": ["api", "users"]
            },
            "description": "Create a new user"
          }
        },
        {
          "name": "Get User by ID",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "http://localhost:3000/api/users/1",
              "protocol": "http",
              "host": ["localhost"],
              "port": "3000",
              "path": ["api", "users", "1"]
            },
            "description": "Get a specific user by ID (replace 1 with actual user ID)"
          }
        },
        {
          "name": "Update User",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Doe\",\n  \"email\": \"jane.doe@example.com\",\n  \"phone\": \"0123456789\",\n  \"address\": \"123 Main St\",\n  \"avatar\": \"https://randomuser.me/api/portraits/women/2.jpg\",\n  \"gender\": \"female\",\n  \"country\": \"Canada\",\n  \"registered\": \"2024-02-20T14:15:00.000Z\"\n}"
            },
            "url": {
              "raw": "http://localhost:3000/api/users/1",
              "protocol": "http",
              "host": ["localhost"],
              "port": "3000",
              "path": ["api", "users", "1"]
            },
            "description": "Update a user by ID (replace 1 with actual user ID)"
          }
        },
        {
          "name": "Delete User",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "http://localhost:3000/api/users/1",
              "protocol": "http",
              "host": ["localhost"],
              "port": "3000",
              "path": ["api", "users", "1"]
            },
            "description": "Delete a user by ID (replace 1 with actual user ID)"
          }
        }
      ]
    }
  ]
}
