Skip to main content

Module federation

Module federation 

Source
Expand description

Federation HTTP endpoints — status and sync for remote connectors.

§Overview

These admin endpoints expose the state of federation connectors and allow manual sync triggers.

§Endpoints

§GET /api/federation/status

No request grid. Response columns:

ColumnKindDescription
nameStrConnector display name
entityCountNumberCached entity count
transportStr"http" or "ws"
connectedBoolWhether last sync succeeded
lastSyncDateTimeTimestamp of last successful sync
cacheVersionNumberMonotonic cache version counter
stalenessSecsNumberSeconds since last successful sync

§POST /api/federation/sync

Triggers all connectors. Response columns:

ColumnKindDescription
nameStrConnector name
resultStrEntity count or error message
okBoolWhether sync succeeded

§POST /api/federation/sync/{name}

Same response as sync-all but for a single named connector.

§Errors

  • 500 Internal Server Error — encoding failure or sync error.

Functions§

handle_status
GET /api/federation/status
handle_sync
POST /api/federation/sync
handle_sync_one
POST /api/federation/sync/{name}