Skip to content

Commit

Permalink
docs: setup API docs and document mode param
Browse files Browse the repository at this point in the history
  • Loading branch information
nikgraf committed Oct 14, 2023
1 parent a72be53 commit 4a21c46
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions documentation/pages/docs/_meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"getting-started": "Getting started",
"examples": "Examples",
"api": "API",
"error-handling": "Error Handling",
"security_and_privacy": "Security & Privacy",
"specification": "Specification",
Expand Down
12 changes: 12 additions & 0 deletions documentation/pages/docs/api.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# API

## Mode

Can be `"complete"` or `"delta"`. The default is `"complete"`

Providing `"complete"` informs the backend that the entire document should be loaded. This means the last known snapshot and all connected updates.

Setting it to `"delta"` means the only the necessary updates should be provided. This means only the necessary data is retrieved e.g.

1. Client is aware of the latest snapshot and three updates and only misses two updates then only two updates are sent.
2. Client is aware of an older snapshot, then the latest snapshot and all it's updates are sent.

0 comments on commit 4a21c46

Please sign in to comment.