{
  "openapi": "3.1.0",
  "info": {
    "title": "SEDIRK Lens Library read API",
    "version": "1.0",
    "description": "Read-only discovery for people and AI. Do not submit stock votes automatically."
  },
  "servers": [
    {
      "url": "https://sedirk.cn/lenses"
    }
  ],
  "paths": {
    "/data/catalog.json": {
      "get": {
        "operationId": "getLensCatalog",
        "responses": {
          "200": {
            "description": "公开镜片参数与来源；价格为历史记录",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/data/lenses/{uid}.json": {
      "get": {
        "operationId": "getLens",
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^lens-[0-9a-f]{16}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "单枚镜片记录"
          },
          "404": {
            "description": "不存在"
          }
        }
      }
    },
    "/api.php": {
      "get": {
        "operationId": "getStockFeedback",
        "parameters": [
          {
            "name": "action",
            "in": "query",
            "required": true,
            "schema": {
              "const": "stock"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "近30天有货/无货计数、更新时间与统计口径"
          }
        }
      }
    }
  }
}