Stabilize discovery lifecycle and rescan summary

This commit is contained in:
Artem Kokos
2026-05-16 10:59:31 +07:00
parent 15529961d6
commit 1ac66ec4ac
8 changed files with 604 additions and 124 deletions

View File

@@ -176,7 +176,9 @@
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
"schema": {
"$ref": "#/components/schemas/RescanResponse"
}
}
}
}
@@ -1307,6 +1309,49 @@
"title": "KeyActionRequest",
"description": "Тело запроса для операций с ключом (чтобы токен не летел в URL)."
},
"RescanResponse": {
"properties": {
"status": {
"const": "ok",
"title": "Status"
},
"found": {
"type": "integer",
"title": "Found"
},
"added": {
"type": "integer",
"title": "Added"
},
"updated": {
"type": "integer",
"title": "Updated"
},
"removed_offline": {
"type": "integer",
"title": "Removed Offline"
},
"pending_removal": {
"type": "integer",
"title": "Pending Removal"
},
"online": {
"type": "integer",
"title": "Online"
}
},
"type": "object",
"required": [
"status",
"found",
"added",
"updated",
"removed_offline",
"pending_removal",
"online"
],
"title": "RescanResponse"
},
"ScheduleCreateResponse": {
"properties": {
"status": {