{
  "openapi": "3.1.0",
  "info": {
    "title": "DataRespublica API",
    "version": "1.0.0",
    "description": "Public HTTP API and discovery document. MPP `x-payment-info` extensions describe optional machine-payment metadata."
  },
  "servers": [{ "url": "https://www.datarespublica.com" }],
  "paths": {
    "/api/health": {
      "get": {
        "summary": "Service health",
        "x-payment-info": {
          "intent": "session",
          "method": "stripe",
          "amount": "0",
          "currency": "EUR"
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": { "ok": { "type": "boolean" } }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/x402-sample": {
      "get": {
        "summary": "Sample x402 payment-required endpoint",
        "x-payment-info": {
          "intent": "charge",
          "method": "tempo",
          "amount": "0.01",
          "currency": "USD"
        },
        "responses": {
          "402": { "description": "Payment required (x402)" },
          "200": { "description": "Not used for this sample" }
        }
      }
    }
  }
}
