Skip to content

Add distribution endpoints and batch retrieval#260

Open
sanghoonio wants to merge 6 commits into
masterfrom
modular-backend-api
Open

Add distribution endpoints and batch retrieval#260
sanghoonio wants to merge 6 commits into
masterfrom
modular-backend-api

Conversation

@sanghoonio
Copy link
Copy Markdown
Member

Summary

  • POST /v1/bed/batch: batch metadata retrieval (max 1000 IDs)
  • POST /v1/bed/collection/stats: ad-hoc collection aggregation
  • GET /v1/bedset/{id}/metadata/distributions: distribution stats for bedset
  • Add distributions query param to GET /v1/bed/{id}/metadata/stats
  • Fix duplicate function name in bedset stats handler
  • Fix bbconf version import compatibility

Depends on bbconf PR #113 (modular-backend-logic).

Test plan

  • Locally tested: all new endpoints return correct data
  • bedbase-ui renders compressed distributions from local API
  • CI checks

🤖 Generated with Claude Code

sanghoonio and others added 2 commits April 3, 2026 16:31
New endpoints:
- POST /v1/bed/batch: batch metadata retrieval (max 1000 IDs)
- POST /v1/bed/collection/stats: ad-hoc collection aggregation
- GET /v1/bedset/{id}/metadata/distributions: distribution stats

Modified endpoints:
- GET /v1/bed/{id}/metadata/stats: add distributions query param
- GET /v1/bedset/{id}/metadata/stats: fix duplicate function name

All existing endpoints unchanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fall back to importlib.metadata when bbconf.__version__ is not
available (bbconf removed the module-level __version__ attribute).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 3, 2026

Deploying bedhost-ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: e1ddd01
Status:🚫  Build failed.

View logs

sanghoonio and others added 4 commits April 6, 2026 15:31
Batch retrieval is for metadata across many files — never return
per-file distribution arrays in batch responses.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
BedListResult uses BedMetadataBasic which strips stats during
serialization. Removing response_model lets the full BedBatchResult
(with stats) pass through from bbconf.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant