📌 Description
GET /api/v1/liquidity/entries lists raw per-anchor entries with no filtering per the README, forcing clients to fetch and filter the entire list client-side even when they only care about one anchor's contributions (e.g. for an anchor detail page).
🧩 Requirements and context
- Add an
?anchor= query param filtering entries to one anchor id.
- Return an empty array (not
404) for a valid-format but unknown anchor id, consistent with other list endpoints.
- Keep the unfiltered response shape identical when the param is absent.
🛠️ Suggested execution
- Update
routes/liquidity.ts and LiquidityService/LiquidityRepository to accept and apply the filter.
- Add tests in
routes/liquidity.test.ts for filtered vs. unfiltered results.
- Update the README and
src/openapi.ts.
✅ Acceptance criteria
🔒 Security notes
No new attack surface; read-only filter over already-public entry data.
📋 Guidelines
- Minimum 95% test coverage
- Clear documentation
- Timeframe: 96 hours
📌 Description
GET /api/v1/liquidity/entrieslists raw per-anchor entries with no filtering per the README, forcing clients to fetch and filter the entire list client-side even when they only care about one anchor's contributions (e.g. for an anchor detail page).🧩 Requirements and context
?anchor=query param filtering entries to one anchor id.404) for a valid-format but unknown anchor id, consistent with other list endpoints.🛠️ Suggested execution
routes/liquidity.tsandLiquidityService/LiquidityRepositoryto accept and apply the filter.routes/liquidity.test.tsfor filtered vs. unfiltered results.src/openapi.ts.✅ Acceptance criteria
?anchor=returns only that anchor's entries.🔒 Security notes
No new attack surface; read-only filter over already-public entry data.
📋 Guidelines