v1

latestOpenAPI 3.0.32026-07-177413.0 KB
TodoService

SyncTodos opens a bidirectional stream for two-way synchronization. The client sends SyncTodoRequest messages describing local changes, and the server pushes back TodoEvent messages reflecting the resulting state. The stream stays open until either side closes it.

post/v1/todos/sync

Request body

actionstring

The operation to perform. One of create, update, or delete.

idstring

Identifier of the target todo. Required for delete and update.

updateMaskstring field-mask

Field mask used by update actions to limit which fields are overwritten. Ignored for create and delete.

Response

OK

actionstring

The change that occurred. One of created, updated, or deleted.

eventTimestring date-time

Time at which the change was observed by the server.