{
  "openapi": "3.1.0",
  "info": {
    "title": "What-Version public data API",
    "version": "1.0.0",
    "description": "Read-only software version records with official source URLs and verification dates."
  },
  "servers": [
    {
      "url": "https://www.what-version.com"
    }
  ],
  "paths": {
    "/api/v1/software.json": {
      "get": {
        "summary": "List all tracked software",
        "responses": {
          "200": {
            "description": "Catalog snapshot"
          }
        }
      }
    },
    "/api/v1/software/{slug}.json": {
      "get": {
        "summary": "Get one software record and release history",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "nodejs"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Software version record"
          }
        }
      }
    },
    "/api/v1/badges/{slug}.svg": {
      "get": {
        "summary": "Get an embeddable current-version badge",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "nodejs"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "SVG version badge"
          }
        }
      }
    }
  }
}
