Skip to content

Expose host repository stats API#1102

Open
AgentGoose32 wants to merge 1 commit into
ecosyste-ms:mainfrom
AgentGoose32:polar-680-host-stats-api
Open

Expose host repository stats API#1102
AgentGoose32 wants to merge 1 commit into
ecosyste-ms:mainfrom
AgentGoose32:polar-680-host-stats-api

Conversation

@AgentGoose32
Copy link
Copy Markdown

Refs #680

Summary

  • Adds JSON stats endpoints for global repos.ecosyste.ms data and individual hosts.
  • Exposes counts plus top repositories and top owners by stars/repository counts, covering the API side of the requested instance/host detail pages.
  • Adds controller coverage for both global and per-host stats responses.

Validation

  • ruby -c app/controllers/api/v1/hosts_controller.rb
  • ruby -c test/controllers/api/v1/hosts_controller_test.rb
  • ruby -c config/routes.rb
  • git diff --check

bundle exec ruby -Itest test/controllers/api/v1/hosts_controller_test.rb remains blocked locally because this checkout requires Bundler 4.0.10 from Gemfile.lock, which is not available in the system Ruby environment.

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