Tick off Phase 4 ApiClient TODO

This commit is contained in:
2026-05-11 01:02:13 -07:00
parent 0f70409fd8
commit 87ff5f3108

View File

@@ -619,11 +619,13 @@ Phase 3: SRP + auth
Phase 4: HTTP client + endpoints
- [ ] `ApiClient` that attaches `X-Auth-Token` and `X-Client-Package`
- [x] `ApiClient` that attaches `X-Auth-Token` and `X-Client-Package`
- [x] `ApiError` that surfaces the server's error code and request id
- [x] `getJSON` / `postJSON` with query-param and JSON-body handling
- [x] `getFileStream` / `getThumbnailStream` with self-hosted routing
- [ ] Typed wrappers for the endpoints listed above
- [ ] Retry policy: no retry on 4xx, exponential backoff on 5xx and network
errors
- [ ] `ApiError` that surfaces the server's error code and request id
Phase 5: collections and files