Skip to content

feat: ListingAPI pagination, health check, tracing & InvestmentAPI unit tests - #1466

Merged
nanaf6203-bit merged 2 commits into
MettaChain:mainfrom
Nimatstar:feat/listing-investment-api
Oct 18, 2026
Merged

nanaf6203-bit merged 2 commits into
MettaChain:mainfrom
Nimatstar:feat/listing-investment-api

Conversation

@Nimatstar

Copy link
Copy Markdown
Contributor

Summary

Small, focused changes for ListingAPI and InvestmentAPI:

  • Pagination (ListingAPI) – GET /listings?page=&limit= returns { data, meta: { page, limit, total, totalPages } } (limit capped at 100).
  • Health check (ListingAPI) – GET /listings/health returns ok/error based on database reachability.
  • Distributed tracing (ListingAPI) – listing controller uses the existing TraceInterceptor (adds X-Trace-Id header + trace logs).
  • Unit tests (InvestmentAPI) – added InvestmentsService.calculateRoi with unit tests; also added unit tests for ListingsService.
  • Docs: docs/api/listings-investments.md.

Closes #1391
Closes #1392
Closes #1394
Closes #1395

🤖 Generated with Claude Code

…I; add InvestmentAPI unit tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Oct 17, 2026

Copy link
Copy Markdown

@Nimatstar Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nanaf6203-bit
nanaf6203-bit merged commit a83242f into MettaChain:main Oct 18, 2026
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.

Add unit tests for InvestmentAPI Add pagination support to ListingAPI Add distributed tracing to ListingAPI Add health check for ListingAPI

2 participants