# Backlog: mobile-api endpoints needed to make preview screens functional This app wires every screen that has a backing `solvway-mobile-api` endpoint. The screens below are **display-only previews** (marked in-app with a "Preview" banner or a disabled action) because the mobile gateway does not expose an endpoint for them yet. Most of the underlying logic already exists in `solvway-member-portal` / other Java modules — this is largely a **gateway-exposure** backlog, not net-new business logic. Until these exist, the corresponding UI must not fabricate server state. | Screen / feature | App route | Needed mobile-api endpoint(s) | Notes | |---|---|---|---| | Goodie Bag list & claim | `/goodie-bag` | `GET /api/event/goodieBag` (claimable items), `POST /api/event/goodieBag/claim` | member-portal has `goodieBag` / `giftWithPurchase`. Redeem-at-booth via member QR is already shown. | | Goodie Bag claim history | `/goodie-bag/history` | `GET /api/event/goodieBag/history` | | | Lucky Draw entries & numbers | `/draw` | `GET /api/event/luckyDraw/entries` (tickets, numbers, amount-spent) | member-portal has `luckyDraw`. Only the lucky-draw **poster image** is exposed today (via `event/currentEventConfig.currentEventLuckyDraw`). | | Lucky Draw past results | `/draw` (history sheet) | `GET /api/event/luckyDraw/history` | member-portal has `luckyDrawHistory`. | | Store redemption | `/store` | `POST /api/event/tasteRewards/redeem` (+ redeem-code display) | member-portal has `tasteRewards` / `redeemCode` / `redeemCodeDisplayQr`. Product **display** is wired via `currentEventTasteRewardsProductList`. | | Home gamification ("Complete & Earn") | `/` | `GET /api/member/tasks` + `POST /api/member/tasks/{id}/complete` | No equivalent in the member-portal; new capability. | | Tier / next-tier | `/` , `/store` | `GET /api/member/tier` (current tier, threshold) | No tier concept in mobile-api today; progress bars use a placeholder target. | | Notifications & Privacy settings | `/settings` | `GET/PUT /api/member/preferences` | Placeholder rows. | ## Wired endpoints (for reference) `auth/login`, `member/registerNewMember`, `member/findDocumentsForRegistration`, `member/otpRequired`, `member/otpVerification`, `member/forgetPassword`, `member/firstTimePassword`, `member/changePassword`, `member/profile`, `member/editProfile`, `member/editProfileInitialize`, `member/referralLink` (now returns the customer-portal `/register?ref=` URL), `member/referralStats` (returns `{ joined, earned }`; referral reward payout is inert until the `NEW_REGISTER_REFERRAL` / `NEW_REGISTER` reward-point-config rows are seeded), `tastefullyPoint/getBalanceCache`, `tastefullyPoint/getTodayEarned`, `tastefullyPoint/getTransactions`, `event/currentEventConfig`, `event/upcomingEvent`, `event/checkIn` (booth check-in / CI scan — scans a booth QR, records a `CheckInBooth`; redeem-code display is still out of scope), `geoLocationHierarchy/findFirstLevel`, `geoLocationHierarchy/findByParentId`.