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:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user