{
  "openapi": "3.1.0",
  "info": {
    "title": "VendorReady SBOM SOC 2 & Procurement Auditor API",
    "version": "1.0.0",
    "description": "Zero-upload browser SBOM & dependency auditor + hosted REST & MCP API supporting package.json, package-lock.json, requirements.txt, go.mod, CycloneDX 1.5, and SPDX 2.3 with OSV.dev CVE/KEV enrichment and copyleft license checks.",
    "contact": {
      "name": "RungLab Support",
      "email": "support@runglab.dev",
      "url": "https://sbom.runglab.dev/"
    }
  },
  "servers": [
    {
      "url": "https://sbom.runglab.dev",
      "description": "VendorReady SBOM Discovery Surface"
    },
    {
      "url": "https://hub.runglab.dev",
      "description": "RungLab Developer Intelligence API Hub (Hosted /v1/sbom/audit)"
    }
  ],
  "paths": {
    "/api/v1": {
      "get": {
        "operationId": "getVendorReadyDiscoveryIndex",
        "summary": "Retrieve machine-readable index of VendorReady SBOM endpoints, supported manifest formats, and MCP tool bindings",
        "responses": {
          "200": {
            "description": "Structured API & discovery metadata JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "service": { "type": "string" },
                    "version": { "type": "string" },
                    "endpoints": { "type": "array", "items": { "type": "object" } }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/sbom/audit": {
      "post": {
        "operationId": "auditSbomManifest",
        "summary": "Audit an SBOM or lockfile (package-lock.json, package.json, requirements.txt, go.mod, CycloneDX, SPDX) for CVEs, CISA KEV, and copyleft license risk",
        "servers": [
          {
            "url": "https://hub.runglab.dev",
            "description": "Hosted RungLab API Hub (RapidAPI / API.market)"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["manifest"],
                "properties": {
                  "manifest": { "type": "string", "description": "Raw manifest or SBOM file contents" },
                  "filename": { "type": "string", "example": "package-lock.json" },
                  "distribution": { "type": "string", "enum": ["saas", "self-hosted", "embedded-sdk"], "default": "saas" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "100-point SOC 2 & Procurement SBOM scorecard with CVE/KEV and license findings",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "overallScore": { "type": "integer", "minimum": 0, "maximum": 100 },
                    "grade": { "type": "string" },
                    "components": { "type": "integer" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
