wip: local portal changes (backup before disk cleanup)

This commit is contained in:
Ondřej Glaser
2026-07-07 13:16:26 +02:00
parent 48cef99257
commit 79b17be817
774 changed files with 8592 additions and 245 deletions

View File

@@ -0,0 +1,65 @@
{
"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)" }
}
}
}
}
}
}
}
}
}
}