{
  "openapi": "3.1.0",
  "info": {
    "title": "HUIKANGA Public Catalog",
    "version": "1.0.0",
    "description": "Public read-only references. No customer data, stock promises, order placement or RFQ submission. Unknown/duplicate filters return 400. No runtime AI."
  },
  "servers": [
    {
      "url": "https://www.huikanga.com"
    }
  ],
  "paths": {
    "/api/catalog/products": {
      "get": {
        "operationId": "searchProducts",
        "parameters": [
          {
            "name": "q",
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "description": "All whitespace-separated terms must match name, ID, brand, model code or highlights.",
            "in": "query",
            "required": false
          },
          {
            "name": "brand",
            "schema": {
              "type": "string",
              "enum": [
                "UGREEN",
                "DJI",
                "INSTAX",
                "ECOFLOW",
                "INSTA360"
              ]
            },
            "in": "query",
            "required": false
          },
          {
            "name": "category",
            "schema": {
              "type": "string",
              "enum": [
                "wireless-microphones",
                "camera-accessories",
                "instax-printers",
                "usb-chargers",
                "usb-power-banks",
                "usb-cables",
                "expansion-batteries",
                "solar-panels",
                "energy-systems",
                "outdoor-appliances",
                "charging-accessories",
                "action-cameras",
                "gimbal-cameras",
                "portable-power",
                "camera-batteries",
                "instax-cameras",
                "instant-film"
              ]
            },
            "in": "query",
            "required": false
          },
          {
            "name": "referenceRegion",
            "schema": {
              "type": "string"
            },
            "description": "Manufacturer reference region, not fulfillment or shipping eligibility.",
            "in": "query",
            "required": false
          },
          {
            "name": "requestedVoltage",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 999
            },
            "description": "Requested configuration only. Does not indicate verified supply voltage.",
            "in": "query",
            "required": false
          },
          {
            "name": "compatibleWith",
            "schema": {
              "type": "string"
            },
            "description": "Host product ID. Returns only explicitly recorded accessory evidence; unknown does not mean incompatible.",
            "in": "query",
            "required": false
          },
          {
            "name": "limit",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 24
            },
            "in": "query",
            "required": false
          },
          {
            "name": "offset",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000,
              "default": 0
            },
            "in": "query",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated catalog candidates",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer"
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "offset": {
                      "type": "integer"
                    },
                    "nextOffset": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "filterNotes": {
                      "type": "string"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "url",
                          "sourceUrl",
                          "procurement"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "brand": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "markdownUrl": {
                            "type": "string",
                            "format": "uri"
                          },
                          "sourceUrl": {
                            "type": "string",
                            "format": "uri"
                          },
                          "highlights": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "procurement": {
                            "type": "object",
                            "description": "Evidence-qualified facts, requested configuration, unknown supply values, checks and source-linked compatibility. Null means not recorded, not zero or unavailable."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid, duplicate or unknown filter"
          }
        }
      }
    },
    "/api/catalog/products/{id}": {
      "get": {
        "operationId": "getProduct",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Catalog product",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "url",
                    "sourceUrl",
                    "procurement"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "brand": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "markdownUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "sourceUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "highlights": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "procurement": {
                      "type": "object",
                      "description": "Evidence-qualified facts, requested configuration, unknown supply values, checks and source-linked compatibility. Null means not recorded, not zero or unavailable."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown product ID"
          }
        }
      }
    }
  }
}
