You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All require Authorization: key {api_key} header and {user_token} in the path.
Auth token is obtained via POST /users/_token/ (already implemented in user.go).
LEGO catalog endpoints do not require a user token — they can use a simpler client (API key only, no login step).
Paginated list responses follow { count, next, previous, results[] } — reuse existing SetsResponse / SetListsResponse as a pattern.
Part list parts use a composite key (part_num, color_id) rather than a single ID.
sets/sync/ is destructive — it replaces the entire default set list.
Integration testing with txtar is practical only for resources with stable, known identifiers (e.g. set numbers). Resources with auto-generated IDs (part lists, setlists) should be covered by unit tests using httptest mocks.