From 87ff5f3108912e63d2b200dd9215af23b1a515af Mon Sep 17 00:00:00 2001 From: sneak Date: Mon, 11 May 2026 01:02:13 -0700 Subject: [PATCH] Tick off Phase 4 ApiClient TODO --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b3159a..86f61d3 100644 --- a/README.md +++ b/README.md @@ -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