GET /api/v1/dashboard
Route source: app/api/v1/dashboard/route.ts. Access: Portal session cookie; tenantContext. Status codes are read from the route implementation.
GET
/api/v1/dashboardZugang
Die Session-Variable in den Beispielen ist ein Platzhalter. Der Browser setzt das echte Sitzungscookie.
Anfrage
| Pfad | Route-Details |
|---|---|
query · range | optional · {"type":"string","enum":["open","24h","7d","30d"],"default":"open"} |
Anfrage-Body laut Handler: keiner.
Synthetisches curl-Beispiel
curl -i -X GET 'https://portal.rfi-irfos.com/api/v1/dashboard?range=7d' \
-H "Cookie: $PORTAL_SESSION_COOKIE"Antwort
Der Handler liefert JSON. Die Antwortfelder sind im verlinkten Routencode definiert.
200 401 500 503
Synthetisches curl-Beispiel · synthetic
{
"data": {
"openFindings": 0,
"openIncidents": 0,
"activeInvestigations": 0,
"totalInvestigations": 0,
"assets": 0,
"locatedAssets": 0,
"severity": {
"critical": 0,
"high": 0,
"medium": 0,
"low": 0,
"informational": 0
},
"incidentSeverity": {
"critical": 0,
"high": 0,
"medium": 0,
"low": 0,
"informational": 0
},
"findingsSeries": [],
"trend": null,
"complianceScore": {
"percent": null,
"satisfied": 0,
"applicable": 0,
"assessed": 0,
"total": 0
},
"mttr": {
"medianHours": null,
"sample": 0,
"weeks": []
},
"geoMarkers": [],
"range": "open",
"generatedAt": "2026-01-01T00:00:00.000Z"
},
"meta": {
"demo": true,
"internalPreview": false,
"role": "analyst",
"organizationName": "Example workspace"
}
}Die referenzierte Quelldatei enthält die maßgebliche Feldvalidierung und Antwortstruktur.
Fehlercodes
401· Sitzung oder Zugangsdaten fehlen oder sind ungültig500· Interner Handlerfehler503· Dienst oder Datenbank ist nicht verfügbar
Beleg im Code
app/api/v1/dashboard/route