{
  "openapi": "3.1.0",
  "info": {
    "title": "Evangelio del Día API",
    "description": "API REST para consulta del Evangelio del Día católico, lecturas litúrgicas y Lectio Divina (UDEFE / Comunidad Hombre Nuevo).",
    "version": "1.0.0",
    "contact": {
      "name": "UDEFE / Evangelio del Día",
      "url": "https://evangeliodeldia.udefe.com"
    }
  },
  "servers": [
    {
      "url": "https://evangeliodeldia.udefe.com",
      "description": "Servidor de Producción"
    }
  ],
  "paths": {
    "/api/reading.php": {
      "get": {
        "summary": "Obtener lecturas litúrgicas católicas por fecha",
        "operationId": "getReading",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "Fecha en formato ISO YYYY-MM-DD. Si se omite, devuelve las lecturas del día de hoy.",
            "schema": {
              "type": "string",
              "format": "date",
              "example": "2026-11-08"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Lecturas y reflexión litúrgica del día",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": { "type": "boolean" },
                    "date": { "type": "string" },
                    "title": { "type": "string" },
                    "season": { "type": "string" },
                    "text": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
