{
    "openapi": "3.1.0",
    "info": {
        "title": "CasiOAK Custom Public Catalog API",
        "version": "1.0.1",
        "description": "Bounded read-only access to published CasiOAK Custom products. No cart, account, order, or payment mutations are supported."
    },
    "servers": [
        {
            "url": "https://casiocustom.ru"
        }
    ],
    "paths": {
        "/api/agent/products": {
            "get": {
                "operationId": "searchPublicProducts",
                "summary": "Search published products",
                "security": [],
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "maxLength": 80
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 20,
                            "default": 10
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "A bounded list of public products"
                    }
                }
            }
        },
        "/api/agent/products/{productId}": {
            "get": {
                "operationId": "getPublicProduct",
                "summary": "Read one published product",
                "security": [],
                "parameters": [
                    {
                        "name": "productId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Published product"
                    },
                    "404": {
                        "description": "Product is not publicly available"
                    }
                }
            }
        }
    }
}
