Commit Graph

8 Commits

Author SHA1 Message Date
Michaël
96f440da1a Fix: Add missing API endpoints to docs and fix duplicate mints in recommendations
- Added 17 missing endpoints to OpenAPI documentation:
  * 4 analytics endpoints (status-distribution, networks, metadata-quality)
  * 2 system endpoints (stats/timeline)
  * 1 review endpoint (reviews/recent)
  * 4 mint discovery endpoints (activity, recent, updated, popular)
  * 6 mint detail endpoints (stats, card, latency/timeseries, availability, trust/history, trust/compare, reviews/summary, views/timeseries)

- Fixed duplicate mints bug in recommendation endpoints:
  * Modified SQL queries to use subquery for uptime_rollups
  * Prevents cartesian product from 493 duplicate rollup entries
  * All recommendation endpoints now return unique mints

- Affected endpoints:
  * GET /mints/recommended (all use cases)
  * GET /wallets/:wallet_name/recommended-mints

All 82 API endpoints now documented and tested.
All 23 core endpoints verified working.
2025-12-27 14:14:41 -03:00
Michaël
5383af4695 Add frontend-optimized aggregation endpoints
- Add GET /mints/{mint_id}/profile - full mint profile in one request
- Add GET /mints/cards - lightweight cards for directory/grid views
- Add GET /mints/{mint_id}/metrics - timeseries metrics for charts
- Add GET /analytics/activity - ecosystem activity timeline
- Add POST /mints/compare - side-by-side mint comparison
- Add GET /mints/rankings - ranked leaderboards by trust/uptime/latency/reviews
- Add GET /mints/{mint_id}/similar - find similar mints
- Add GET /mints/recommended - use-case based recommendations
- Add GET /mints/{mint_id}/compatibility - wallet compatibility info
- Add GET /wallets/{wallet_name}/recommended-mints - wallet-specific recommendations
- Add GET /mints/{mint_id}/risk - risk assessment and flags
- Update OpenAPI documentation for all new endpoints
- Fix review rating parsing from content field
- Fix trust score calculation to include parsed ratings
2025-12-26 19:15:25 -03:00
Michaël
48965a6f18 Fix reviews and trust score calculation, improve metadata API docs
- Fix reviews/recent and getRecentReviews to return all reviews (not just those with parsed ratings)
- Fix trust score calculation to parse ratings from content text (e.g., [5/5])
- Fix getReviewSummary and getReviewStats to parse ratings from content
- Fix OpenAPI schema for contact field (should be array, not object)
- Fix popular/trending mints endpoints to show results even without pageviews
2025-12-21 19:31:58 -03:00
Michaël
c2a7267459 Standardize all timestamps to UTC ISO-8601 format
- Update schema.sql defaults from datetime('now') to strftime('%Y-%m-%dT%H:%M:%fZ', 'now')
- Update schema-admin.sql with same UTC format
- Update AdminService.js inline table creation and query comparisons
- Update system.js time-based query comparisons
- Add documentation to time.js explaining UTC format convention
2025-12-21 19:10:07 -03:00
Michilis
0db5dec5ec Fix /stats route: make async and correct trending mints response
- Make /stats route handler async
- Await getTrendingMints call
- Fix trending mints response to use view_count instead of views_7d
2025-12-21 01:49:05 -03:00
Michilis
62c9651a5e Update documentation and routes to remove /v1 prefix
- Update all route documentation comments
- Update README, env.example, and starter-docs
- Update install.sh
2025-12-21 01:46:14 -03:00
Michilis
46ad6d74a3 Remove /v1 API version prefix from all routes
- Update routes to serve at root level instead of /v1/*
- Simplify nginx configuration and use certbot SSL defaults
- Update OpenAPI spec server URLs
- Change nginx upstream port from 3000 to 3012
2025-12-21 01:27:16 -03:00
Michilis
23f716255e Initial commit 2025-12-19 23:56:07 -03:00