{
  "openapi": "3.1.0",
  "info": {
    "title": "HAVEN Psicología - Public API",
    "description": "API pública y legible por agentes para consulta de información asistencial, tarifas vigentes, estado del servicio y coordinación de citas en HAVEN Psicología (Aitor Patiño Martínez, Psicólogo General Sanitario Col. CV20898).",
    "version": "1.0.0",
    "contact": {
      "name": "Aitor Patiño Martínez",
      "email": "aitor.psychohaven@gmail.com",
      "url": "https://havenpsicologia.es"
    },
    "license": {
      "name": "Aviso Legal HAVEN Psicología",
      "url": "https://havenpsicologia.es/aviso-legal.html"
    }
  },
  "servers": [
    {
      "url": "https://havenpsicologia.es",
      "description": "Servidor de Producción HAVEN Psicología"
    }
  ],
  "security": [],
  "paths": {
    "/api/status.json": {
      "get": {
        "operationId": "getServiceStatus",
        "summary": "Estado operativo del servicio",
        "description": "Comprueba la disponibilidad y el estado operativo de los servicios digitales de HAVEN Psicología.",
        "responses": {
          "200": {
            "description": "Servicio operativo",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceStatus"
                }
              }
            }
          }
        }
      }
    },
    "/api/info.json": {
      "get": {
        "operationId": "getClinicInfo",
        "summary": "Información clínica, colegiación y tarifas vigentes",
        "description": "Devuelve datos identificativos oficiales, habilitación sanitaria (Col. CV20898 COPCV), modalidades de atención presencial/online y honorarios vigentes.",
        "responses": {
          "200": {
            "description": "Información oficial de la consulta",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClinicInfo"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ServiceStatus": {
        "type": "object",
        "properties": {
          "status": { "type": "string", "example": "operational" },
          "service": { "type": "string", "example": "haven-psicologia" },
          "version": { "type": "string", "example": "1.0.0" },
          "uptime": { "type": "string", "example": "99.99%" },
          "region": { "type": "string", "example": "es-valencia" },
          "sanitary_code": { "type": "string", "example": "CV20898" },
          "timestamp": { "type": "string", "format": "date-time" }
        }
      },
      "ClinicInfo": {
        "type": "object",
        "properties": {
          "nombre": { "type": "string", "example": "HAVEN - Consulta de Psicología" },
          "titular": { "type": "string", "example": "Aitor Patiño Martínez" },
          "titulacion": { "type": "string", "example": "Psicólogo General Sanitario" },
          "numero_colegiado": { "type": "string", "example": "CV20898" },
          "ubicacion": { "type": "string", "example": "Manises, Valencia, España" },
          "tarifas": {
            "type": "object",
            "properties": {
              "primera_sesion": { "type": "number", "example": 49.99 },
              "sesion_individual": { "type": "number", "example": 59.99 },
              "bono_4_sesiones": { "type": "number", "example": 229.99 },
              "moneda": { "type": "string", "example": "EUR" }
            }
          }
        }
      }
    }
  }
}
