{
  "openapi": "3.1.0",
  "info": {
    "title": "AFTdV Public API",
    "version": "1.0.0",
    "description": "Public read endpoints for the Temps de Vi festival site (firatempsdevi.cat)."
  },
  "servers": [{ "url": "https://firatempsdevi.cat" }],
  "paths": {
    "/api/botiga-products": {
      "get": {
        "summary": "List shop products",
        "description": "Returns the shop catalogue grouped into tasts (tastings), tiquets (event tickets) and vaixells (boat trips).",
        "responses": {
          "200": {
            "description": "Product catalogue grouped by category",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tasts": { "type": "array", "items": { "type": "object" } },
                    "tiquets": { "type": "array", "items": { "type": "object" } },
                    "vaixells": { "type": "array", "items": { "type": "object" } }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/status": {
      "get": {
        "summary": "Health check",
        "description": "Service health status.",
        "responses": {
          "200": {
            "description": "Service is healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string" },
                    "service": { "type": "string" },
                    "time": { "type": "string", "format": "date-time" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
