{
  "openapi": "3.0.1",
  "info": {
    "title": "API de Eventos Palco21",
    "description": "API para obtener el catálogo de conciertos, eventos y disponibilidad de entradas de Palco21.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "/"
    }
  ],
  "paths": {
    "/ai_discovery/api_events.php": {
      "get": {
        "operationId": "getEvents",
        "summary": "Obtiene la lista de todos los eventos y conciertos activos",
        "responses": {
          "200": {
            "description": "Lista de eventos encontrada",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string" },
                    "count": { "type": "integer" },
                    "events": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "title": { "type": "string" },
                          "description": { "type": "string" },
                          "venue": { 
                            "type": "object",
                            "properties": {
                              "name": { "type": "string" }
                            }
                          },
                          "next_date": { "type": "string", "format": "date-time" },
                          "price_from": { "type": "string" },
                          "url": { "type": "string" }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
