{
  "openapi": "3.1.0",
  "info": {
    "title": "Sultangazi Elektrik — Public & agent discovery API",
    "version": "1.0.0",
    "description": "Kamu bilgilendirme, sağlık kontrolü ve örnek ödeme keşfi (MPP / x402 ile uyumlu örnekler).",
    "contact": {
      "name": "Sultangazi Elektrik",
      "url": "https://sultangazielektirik.com/iletisim"
    }
  },
  "x-service-info": {
    "categories": ["local-services", "home-repair", "agent-discovery"]
  },
  "servers": [{ "url": "https://sultangazielektirik.com", "description": "Üretim" }],
  "paths": {
    "/api/health": {
      "get": {
        "summary": "Sağlık kontrolü",
        "operationId": "getHealth",
        "responses": {
          "200": {
            "description": "Servis ayakta",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string", "example": "ok" },
                    "service": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/x402-premium": {
      "get": {
        "summary": "x402 tarzı örnek ücretli uç (402 Payment Required)",
        "operationId": "getX402Premium",
        "responses": {
          "402": {
            "description": "Ödeme gerekli — x402 benzeri gövde",
            "content": {
              "application/json": {
                "schema": { "type": "object" }
              }
            }
          }
        }
      }
    },
    "/api/paid-tip": {
      "post": {
        "summary": "İsteğe bağlı dijital bahşiş (MPP ödeme keşfi örneği)",
        "operationId": "postPaidTip",
        "x-payment-info": {
          "intent": "charge",
          "method": "card",
          "amount": "1.00",
          "currency": "TRY",
          "description": "Örnek makine ödemesi keşfi — gerçek tahsilat yapılmayabilir."
        },
        "responses": {
          "200": { "description": "İşlem tamamlandı" },
          "402": { "description": "Ödeme gerekli" }
        }
      }
    }
  }
}
