updates
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-01-14 10:07:06 +11:00
parent aa4567d7c1
commit 7b600b2359
5 changed files with 284 additions and 124 deletions

View File

@@ -584,6 +584,63 @@ const docTemplate = `{
}
}
},
"/api/snapshots/aggregate": {
"post": {
"description": "Forces regeneration of a daily or monthly summary table for a specified date or month.",
"produces": [
"application/json"
],
"tags": [
"snapshots"
],
"summary": "Force snapshot aggregation",
"parameters": [
{
"type": "string",
"description": "Aggregation type: daily or monthly",
"name": "type",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Daily date (YYYY-MM-DD) or monthly date (YYYY-MM)",
"name": "date",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Aggregation complete",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"400": {
"description": "Invalid request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/snapshots/daily": {
"get": {
"description": "Lists daily summary snapshot tables.",