{
  "openapi": "3.1.0",
  "info": {
    "title": "Drovm public health API",
    "version": "1.0.0",
    "description": "Read-only service status. Workspace APIs and authentication are outside this public contract."
  },
  "servers": [
    {
      "url": "https://drovm.com"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "operationId": "getServiceHealth",
        "summary": "Read service status",
        "security": [],
        "responses": {
          "200": {
            "description": "Status snapshot. Check database; HTTP 200 alone does not mean every dependency is healthy.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "database": {
                      "type": "string",
                      "enum": [
                        "ok",
                        "unexpected",
                        "unavailable"
                      ]
                    },
                    "checkedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "database",
                    "checkedAt"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "description": "Service or network error; back off before retrying."
          }
        }
      }
    }
  }
}
