{ "swagger": "2.0", "info": { "title": "Colsys – Nabídka → Excel", "description": "Zpracuje dodavatelskou nabídku (PDF/XLSX) a vrátí Excel s položkami.", "version": "1.0" }, "host": "ai.klas.chat", "basePath": "/apps/nabidky", "schemes": ["https"], "consumes": ["application/json"], "produces": ["application/json"], "securityDefinitions": { "apiKeyHeader": { "type": "apiKey", "in": "header", "name": "X-API-Key" } }, "security": [ { "apiKeyHeader": [] } ], "paths": { "/api/process": { "post": { "summary": "Zpracovat nabídku", "description": "Pošle přílohu nabídky a vrátí Excel.", "operationId": "ProcessOffer", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { "type": "object", "required": ["filename", "file_base64"], "properties": { "filename": { "type": "string", "x-ms-summary": "Název souboru", "description": "Např. nabidka.pdf" }, "file_base64": { "type": "string", "x-ms-summary": "Obsah souboru (base64)", "description": "ContentBytes přílohy" } } } } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "properties": { "ok": { "type": "boolean", "x-ms-summary": "OK" }, "offer_number": { "type": "string", "x-ms-summary": "Číslo nabídky" }, "supplier_name": { "type": "string", "x-ms-summary": "Dodavatel" }, "item_count": { "type": "integer", "x-ms-summary": "Počet položek" }, "total": { "type": "number", "x-ms-summary": "Celkem bez DPH" }, "summary": { "type": "string", "x-ms-summary": "Shrnutí" }, "excel": { "type": "object", "x-ms-summary": "Excel", "properties": { "filename": { "type": "string", "x-ms-summary": "Název Excelu" }, "content_base64": { "type": "string", "x-ms-summary": "Obsah Excelu (base64)" } } } } } } } } } } }