Skip to content

[100 MRG] Server: session wishlist API with full test suite#110

Open
lb1192176991-lab wants to merge 2 commits into
mergeos-bounties:masterfrom
lb1192176991-lab:feat/session-wishlist-api
Open

[100 MRG] Server: session wishlist API with full test suite#110
lb1192176991-lab wants to merge 2 commits into
mergeos-bounties:masterfrom
lb1192176991-lab:feat/session-wishlist-api

Conversation

@lb1192176991-lab

Copy link
Copy Markdown

What

Adds session management and wishlist API endpoints to the BeeAR server:

  • POST /api/sessions - Create session with optional frame_ids
  • GET /api/sessions/{id} - Get session details
  • GET /api/sessions - List all sessions
  • PATCH /api/sessions/{id} - Update session (frame_ids, wishlist, note)
  • POST /api/sessions/{id}/wishlist - Add frame to wishlist
  • PUT /api/sessions/{id}/wishlist - Replace entire wishlist

Why

Provides backend API for try-on sessions and wishlist management (in-memory storage).

Testing

16 comprehensive tests in packages/server/tests/test_sessions.py:

  • Session CRUD (create, get, list, patch)
  • Wishlist add with duplicate prevention
  • Wishlist PUT (full replace, empty, dedup, 404)
  • Full lifecycle end-to-end test
======================== 16 passed in 0.87s =========================

Fixes #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[100 MRG] Server: wishlist + session API

1 participant