{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/distribea-com/json-schema/distribea-com-api-index-schema.json",
  "title": "ApiIndex",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/distribea-com-openapi.json#/components/schemas/ApiIndex",
  "type": "object",
  "required": [
    "name",
    "version",
    "base_url",
    "openapi",
    "auth",
    "endpoints"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "base_url": {
      "type": "string",
      "format": "uri"
    },
    "openapi": {
      "type": "string",
      "format": "uri"
    },
    "docs": {
      "type": "string",
      "format": "uri"
    },
    "auth": {
      "type": "object",
      "required": [
        "type",
        "header",
        "get_key"
      ],
      "properties": {
        "type": {
          "type": "string",
          "const": "api_key"
        },
        "header": {
          "type": "string"
        },
        "get_key": {
          "type": "string",
          "format": "uri"
        },
        "note": {
          "type": "string"
        }
      }
    },
    "mcp_server": {
      "type": "string",
      "format": "uri"
    },
    "endpoints": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "method",
          "path",
          "auth",
          "does"
        ],
        "properties": {
          "method": {
            "type": "string",
            "enum": [
              "GET",
              "POST"
            ]
          },
          "path": {
            "type": "string"
          },
          "auth": {
            "type": "string"
          },
          "does": {
            "type": "string"
          }
        }
      }
    }
  }
}