Skip to main content

handle_sync_one

Function handle_sync_one 

Source
pub async fn handle_sync_one(
    req: HttpRequest,
    state: Data<AppState>,
    path: Path<String>,
) -> Result<HttpResponse, HaystackError>
Expand description

POST /api/federation/sync/{name}

Triggers sync_one(name) on a single connector. Returns a grid with name, result (entity count or error string), and ok (Bool).