{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ibm-api-connect/json-schema/ibm-api-connect-discovered-apicalls-schema.json",
  "title": "DiscoveredAPICalls",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ibm-api-connect-reconstructed-apis-api-openapi.yml#/components/schemas/DiscoveredAPICalls",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "discovered-api-calls": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/APICallRecordRequest"
      }
    }
  },
  "$defs": {
    "APICallRecordRequest": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 255
        },
        "title": {
          "type": "string",
          "maxLength": 1023
        },
        "summary": {
          "type": "string",
          "maxLength": 65535
        },
        "source_id": {
          "type": "string"
        },
        "source_batchid": {
          "type": "string"
        },
        "process_stage": {
          "type": "integer"
        },
        "calls_count": {
          "type": "integer"
        },
        "calls_datetime": {
          "type": "string",
          "format": "date-time"
        },
        "call_client_id": {
          "type": "string"
        },
        "call_src_ip": {
          "type": "string"
        },
        "call_src_port": {
          "type": "integer"
        },
        "call_dest_ip": {
          "type": "string"
        },
        "call_dest_port": {
          "type": "integer"
        },
        "call_dest_hostname": {
          "type": "string"
        },
        "gateway_ip": {
          "type": "string"
        },
        "operation": {
          "type": "string",
          "enum": [
            "put",
            "get",
            "post",
            "patch",
            "options",
            "head",
            "delete",
            "trace",
            "connect"
          ]
        },
        "path": {
          "type": "string"
        },
        "user_agent": {
          "type": "string"
        },
        "req_headers": {
          "type": "object",
          "additionalProperties": true
        },
        "rsp_code": {
          "type": "string"
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    }
  }
}