{
  "openapi": "3.1.0",
  "info": {
    "title": "Parcel Test API",
    "version": "1.0.0",
    "description": "A synthetic, credential-free API used only for a local SDK generation test."
  },
  "servers": [
    {
      "url": "http://127.0.0.1:8787",
      "description": "Disposable loopback mock"
    }
  ],
  "paths": {
    "/parcels/{parcelId}": {
      "get": {
        "operationId": "getParcel",
        "summary": "Get a synthetic parcel",
        "parameters": [
          {
            "name": "parcelId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "par_123"
          }
        ],
        "responses": {
          "200": {
            "description": "Synthetic parcel state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Parcel"
                },
                "example": {
                  "id": "par_123",
                  "status": "in_transit",
                  "updated_at": "2026-09-20T12:00:00Z"
                }
              }
            }
          },
          "404": {
            "description": "Parcel not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Parcel": {
        "type": "object",
        "required": [
          "id",
          "status",
          "updated_at"
        ],
        "properties": {
          "id": {
            "type": "string",
            "example": "par_123"
          },
          "status": {
            "type": "string",
            "enum": [
              "label_created",
              "in_transit",
              "delivered"
            ],
            "example": "in_transit"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-09-20T12:00:00Z"
          }
        }
      }
    }
  }
}
