{
  "openapi": "3.1.0",
  "info": {
    "title": "Cicerone Territory Guide API",
    "version": "1.0.0",
    "description": "Verified regional wineries & restaurants (Oltrepò Pavese & Alpi Biellesi), owner button-confirmation update simulator, and Option B WhatsApp booking relay."
  },
  "servers": [
    {
      "url": "https://cicerone.quest-platform.com"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "Service health status",
        "responses": {
          "200": {
            "description": "Healthy status JSON"
          }
        }
      }
    },
    "/api/venues": {
      "get": {
        "operationId": "listVenues",
        "summary": "List verified venues",
        "parameters": [
          {
            "name": "region",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Array of verified venues"
          }
        }
      }
    },
    "/api/venues/{slug}": {
      "get": {
        "operationId": "getVenue",
        "summary": "Get verified venue details by slug",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Venue object"
          },
          "404": {
            "description": "Venue not found"
          }
        }
      }
    },
    "/api/owner-update": {
      "post": {
        "operationId": "ownerUpdate",
        "summary": "Parse an owner message into a preview or apply Confirm/Cancel action",
        "responses": {
          "200": {
            "description": "Parsed preview or confirmed state"
          }
        }
      }
    },
    "/book": {
      "post": {
        "operationId": "requestBooking",
        "summary": "Submit a booking request relayed to the venue owner via WhatsApp buttons",
        "responses": {
          "200": {
            "description": "Pending booking relay object"
          }
        }
      }
    }
  }
}