{
  "openapi": "3.1.0",
  "info": {
    "title": "郑州市硕糖网络科技有限公司公开资料查询",
    "version": "1.0.0",
    "description": "仅GET只读操作，无需API密钥；不执行付款、创建订单、联系人查询或外联。"
  },
  "servers": [
    {
      "url": "https://xhmcx.com"
    }
  ],
  "paths": {
    "/ai-api/v1/company": {
      "get": {
        "operationId": "getCompany",
        "summary": "公司全称、公开联系方式与14项业务。",
        "parameters": [],
        "responses": {
          "200": {
            "description": "公开数据 JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "无效参数"
          },
          "404": {
            "description": "未知ID"
          },
          "429": {
            "description": "请求过快，请稍后重试"
          }
        }
      }
    },
    "/ai-api/v1/services": {
      "get": {
        "operationId": "listServices",
        "summary": "四项主要服务、交付与验收。",
        "parameters": [],
        "responses": {
          "200": {
            "description": "公开数据 JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "无效参数"
          },
          "404": {
            "description": "未知ID"
          },
          "429": {
            "description": "请求过快，请稍后重试"
          }
        }
      }
    },
    "/ai-api/v1/pricing": {
      "get": {
        "operationId": "getPricing",
        "summary": "公开报价；起价与套餐价区分，包含交付与不包含项。",
        "parameters": [
          {
            "name": "product_id",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          }
        ],
        "responses": {
          "200": {
            "description": "公开数据 JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "无效参数"
          },
          "404": {
            "description": "未知ID"
          },
          "429": {
            "description": "请求过快，请稍后重试"
          }
        }
      }
    },
    "/ai-api/v1/search": {
      "get": {
        "operationId": "searchPublicContent",
        "summary": "检索公开业务、文章与报价；返回来源和更新时间。",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10,
              "default": 5
            }
          }
        ],
        "responses": {
          "200": {
            "description": "公开数据 JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "无效参数"
          },
          "404": {
            "description": "未知ID"
          },
          "429": {
            "description": "请求过快，请稍后重试"
          }
        }
      }
    },
    "/ai-api/v1/documents/{document_id}": {
      "get": {
        "operationId": "getPublicDocument",
        "summary": "读取 search 返回的文档 ID；不接受URL或文件路径。",
        "parameters": [
          {
            "name": "document_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9-]{1,100}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "公开数据 JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "无效参数"
          },
          "404": {
            "description": "未知ID"
          },
          "429": {
            "description": "请求过快，请稍后重试"
          }
        }
      }
    }
  }
}
