{
  "entries": [
    {
      "identifier": "urn:air:chillmart.jp:store:product-catalog",
      "displayName": "ChillMart 商品カタログ",
      "type": "application/vnd.oai.openapi+json",
      "description": "ChillMartで公開されている商品を、キーワード、カテゴリー、ブランドで検索できます。商品名、価格、在庫、商品ページのURLを読み取れます。",
      "representativeQueries": [
        "ChillMartで販売されている510バッテリーを探したい",
        "ChillMartでMascotteの巻紙を探したい",
        "ChillMartでCBDカートリッジの価格と在庫を確認したい"
      ],
      "capabilities": ["ProductSearch"],
      "data": {
        "openapi": "3.1.0",
        "info": {
          "title": "ChillMart 公開商品検索",
          "version": "1.0.0"
        },
        "servers": [{ "url": "https://chillmart.jp/wp-json/wc/store/v1" }],
        "paths": {
          "/products": {
            "get": {
              "operationId": "searchPublicProducts",
              "summary": "公開中の商品を検索する",
              "parameters": [
                { "name": "catalog_visibility", "in": "query", "required": true, "schema": { "type": "string", "enum": ["visible"] } },
                { "name": "search", "in": "query", "schema": { "type": "string" }, "description": "商品名などを検索するキーワード" },
                { "name": "category", "in": "query", "schema": { "type": "string" }, "description": "商品カテゴリーのスラッグ" },
                { "name": "brand", "in": "query", "schema": { "type": "string" }, "description": "ブランドのスラッグ" },
                { "name": "page", "in": "query", "schema": { "type": "integer", "minimum": 1 } },
                { "name": "per_page", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 20 } }
              ],
              "responses": {
                "200": {
                  "description": "商品リスト",
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": { "type": "string" },
                            "permalink": { "type": "string", "format": "uri" },
                            "is_in_stock": { "type": "boolean" },
                            "prices": {
                              "type": "object",
                              "properties": {
                                "price": { "type": "string", "description": "通貨の最小単位で表した価格" },
                                "currency_code": { "type": "string" },
                                "currency_minor_unit": { "type": "integer" }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "security": []
            }
          }
        }
      }
    }
  ]
}
