{
  "info": {
    "_postman_id": "f9e8d7c6-b5a4-4321-8765-4321fedcba98",
    "name": "Swagger Petstore Sample",
    "description": "Comprehensive sample for Swagger Petstore API v2.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Pet Operations",
      "item": [
        {
          "name": "Add a New Pet",
          "request": {
            "method": "POST",
            "header": [
              { "key": "Content-Type", "value": "application/json", "type": "text" }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": 12345,\n  \"category\": {\n    \"id\": 1,\n    \"name\": \"Dogs\"\n  },\n  \"name\": \"Rex\",\n  \"photoUrls\": [\n    \"https://example.com/rex.jpg\"\n  ],\n  \"tags\": [\n    { \"id\": 1, \"name\": \"friendly\" },\n    { \"id\": 2, \"name\": \"trained\" }\n  ],\n  \"status\": \"available\"\n}"
            },
            "url": "https://petstore.swagger.io/v2/pet"
          }
        },
        {
          "name": "Update Pet (Form Data)",
          "request": {
            "method": "POST",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                { "key": "name", "value": "Rex updated", "type": "text" },
                { "key": "status", "value": "pending", "type": "text" }
              ]
            },
            "url": "https://petstore.swagger.io/v2/pet/12345"
          }
        },
        {
          "name": "Find Pets by Status",
          "request": {
            "method": "GET",
            "url": {
              "raw": "https://petstore.swagger.io/v2/pet/findByStatus?status=available&status=pending",
              "protocol": "https",
              "host": ["petstore", "swagger", "io"],
              "path": ["v2", "pet", "findByStatus"],
              "query": [
                { "key": "status", "value": "available" },
                { "key": "status", "value": "pending" }
              ]
            }
          }
        },
        {
          "name": "Get Pet by ID",
          "request": {
            "method": "GET",
            "url": "https://petstore.swagger.io/v2/pet/12345"
          }
        },
        {
          "name": "Delete Pet",
          "request": {
            "method": "DELETE",
            "header": [
              { "key": "api_key", "value": "special-key", "type": "text" }
            ],
            "url": "https://petstore.swagger.io/v2/pet/12345"
          }
        }
      ]
    },
    {
      "name": "Store Operations",
      "item": [
        {
          "name": "Get Inventory",
          "request": {
            "method": "GET",
            "header": [
              { "key": "api_key", "value": "special-key", "type": "text" }
            ],
            "url": "https://petstore.swagger.io/v2/store/inventory"
          }
        },
        {
          "name": "Place an Order",
          "request": {
            "method": "POST",
            "header": [
              { "key": "Content-Type", "value": "application/json", "type": "text" }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": 5,\n  \"petId\": 12345,\n  \"quantity\": 1,\n  \"shipDate\": \"2023-11-01T15:00:00.000Z\",\n  \"status\": \"placed\",\n  \"complete\": false\n}"
            },
            "url": "https://petstore.swagger.io/v2/store/order"
          }
        }
      ]
    },
    {
      "name": "User Operations",
      "item": [
        {
          "name": "Create User",
          "request": {
            "method": "POST",
            "header": [
              { "key": "Content-Type", "value": "application/json", "type": "text" }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": 1,\n  \"username\": \"jdoe\",\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Doe\",\n  \"email\": \"jane.doe@example.com\",\n  \"password\": \"secure123\",\n  \"phone\": \"555-0199\",\n  \"userStatus\": 1\n}"
            },
            "url": "https://petstore.swagger.io/v2/user"
          }
        },
        {
          "name": "Login User",
          "request": {
            "method": "GET",
            "url": {
              "raw": "https://petstore.swagger.io/v2/user/login?username=jdoe&password=secure123",
              "protocol": "https",
              "host": ["petstore", "swagger", "io"],
              "path": ["v2", "user", "login"],
              "query": [
                { "key": "username", "value": "jdoe" },
                { "key": "password", "value": "secure123" }
              ]
            }
          }
        }
      ]
    }
  ]
}
