feat(sync): implement Delta-Sync API and update clients to support offline-first workflow

Added `/ping/sync` endpoint with timestamp-based Delta-Sync functionality to efficiently support offline-first clients. Extended `PingApi` and frontend clients (`PingApiClient`, `PingApiKoinClient`) with `syncPings`. Updated repository, service, and controller logic for sync handling, including new JPA query `findByCreatedAtAfter`. Adjusted test doubles and completed unit tests for backend and frontend alignment. Documented sync approach and API usage.
This commit is contained in:
2026-01-17 12:22:16 +01:00
parent 59568a42d8
commit 351fe7a672
15 changed files with 190 additions and 62 deletions
@@ -8,4 +8,7 @@ interface PingApi {
// Neue Endpunkte für Security Hardening
suspend fun publicPing(): PingResponse
suspend fun securePing(): PingResponse
// Phase 3: Delta-Sync
suspend fun syncPings(lastSyncTimestamp: Long): List<PingEvent>
}