{
  "openapi": "3.1.0",
  "info": {
    "title": "mfitz.net public API",
    "description": "Public, read-only endpoints exposed by mfitz.net.",
    "version": "1.0.0"
  },
  "paths": {
    "/api/metrics": {
      "get": {
        "summary": "Site metrics",
        "operationId": "getMetrics",
        "responses": {
          "200": {
            "description": "A map of metric keys to their value, label, and unit.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "value": { "type": "string" },
                      "label": { "type": "string" },
                      "unit": { "type": ["string", "null"] }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "summary": "Health check",
        "operationId": "getHealth",
        "responses": {
          "200": {
            "description": "Service is healthy.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string", "example": "ok" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
