Expand description
Sync API — activities, all-items, history, ratings, add-to-list, watched.
Every endpoint here is exposed as a SimklRequest-implementing type.
The POST endpoints (/sync/history, /sync/ratings, /sync/add-to-list,
plus their /remove variants) carry a JSON body — the payload types
(SyncHistoryPayload, SyncRatingPayload, SyncListPayload) are
serialised separately via serde_json at the HTTP layer.
Structs§
- Activities
- AddRatings
Request POST /sync/ratings— send aSyncRatingPayloadas the JSON body.- AddTo
History Request POST /sync/history— send aSyncHistoryPayloadas the JSON body.- AddTo
List Request POST /sync/add-to-list— send aSyncListPayloadas the JSON body.- AllItems
Request - Request for
GET /sync/all-items/[<what>/]?date_from=.... - Anime
History Item - An individual anime to add to/remove from watch history.
- Anime
List Item - An anime to add to a specific list.
- Anime
Rating Item - An individual anime rating.
- Check
IfWatched Request GET /sync/watched— check which items in a set are marked watched.- Media
Activity - Movie
History Item - An individual movie to add/remove from watch history.
- Movie
List Item - A movie to add to a specific list.
- Movie
Rating Item - An individual movie rating.
- Remove
From History Request POST /sync/history/remove— send aSyncHistoryPayloadas the JSON body.- Remove
Ratings Request POST /sync/ratings/remove— send aSyncRatingPayloadas the JSON body.- Show
History Item - An individual TV show to add to/remove from watch history. Episodes can be specified at the show, season, or episode level.
- Show
List Item - A show to add to a specific list.
- Show
Rating Item - An individual show rating.
- Sync
Activities Request - Request for
POST /sync/activities— timestamps for each activity type. - Sync
Added Counts - Item counts in a
SyncResult. - Sync
History Payload - Payload for
POST /sync/history(add to watched history) andPOST /sync/history/remove. - Sync
List Payload - Payload for
POST /sync/add-to-list. - Sync
NotFound - Items the API could not process (unrecognised IDs, etc.).
- Sync
Rating Payload - Payload for
POST /sync/ratings(add ratings) andPOST /sync/ratings/remove. - Sync
Result - Standard response body for POST sync endpoints.
- Sync
Settings - Watched
Episode - A single watched episode (used inside season lists or show-level episode arrays).
- Watched
Season - A watched season entry inside a show sync payload.