Phase 1 — Wire catalog loader + GET /v1/threads/catalog route (forked from Kimi_Agent_Brother_10_Digitizing_App#24) #29

Closed
opened 2026-07-13 01:54:38 +00:00 by Mark · 1 comment
Owner

Scope: small. Add GET /v1/threads/catalog route handler.

Forked from #24 (closed by decompose). File: /home/b/Projects/easystitch-service/app.py. Loader: lru_cache over data/brother_pr10.json. Response shape: {catalog: [{code, name, hex}, ...]}.

Acceptance: 200 on GET /v1/threads/catalog, ≥ 50 entries, malformed JSON returns 422 not Python traceback. ~30 lines + an empty app.py route stub.

**Scope: small.** Add `GET /v1/threads/catalog` route handler. Forked from #24 (closed by decompose). File: `/home/b/Projects/easystitch-service/app.py`. Loader: lru_cache over `data/brother_pr10.json`. Response shape: `{catalog: [{code, name, hex}, ...]}`. Acceptance: 200 on `GET /v1/threads/catalog`, ≥ 50 entries, malformed JSON returns 422 not Python traceback. ~30 lines + an empty `app.py` route stub.
Mark changed title from Decompose: GET /v1/threads/catalog missing from backend — Phase 1: Wire catalog loader + route to Phase 1 — Wire catalog loader + GET /v1/threads/catalog route (forked from Kimi_Agent_Brother_10_Digitizing_App#24) 2026-07-14 00:44:39 +00:00
Author
Owner

Implemented in easystitch-service commit bcff1a0

Added GET /v1/threads/catalog route with get_catalog_entries()
in thread_resolver. 4 unit tests pass covering happy path, missing
file, malformed JSON, and entry shape verification.

Commit: Mark/easystitch-service@bcff1a0

Implemented in easystitch-service commit bcff1a0 Added `GET /v1/threads/catalog` route with `get_catalog_entries()` in thread_resolver. 4 unit tests pass covering happy path, missing file, malformed JSON, and entry shape verification. Commit: https://forgejo.tail018ac4.ts.net/Mark/easystitch-service/commit/bcff1a0
Mark 2026-07-22 16:22:28 +00:00
Sign in to join this conversation.
No description provided.