Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint to paginate through all repos #2785

Closed
bradrydzewski opened this issue Aug 13, 2019 · 1 comment
Closed

Endpoint to paginate through all repos #2785

bradrydzewski opened this issue Aug 13, 2019 · 1 comment
Milestone

Comments

@bradrydzewski
Copy link

We should have an /api/repos that allows a system administrator to paginate through the full list of enabled repositories in the system.

@bradrydzewski bradrydzewski added this to the v1.x.x milestone Aug 28, 2019
@bradrydzewski bradrydzewski removed this from the v1.x.x milestone Sep 17, 2019
@bradrydzewski bradrydzewski modified the milestones: v1.x.x, v1.6.0 Sep 28, 2019
@bradrydzewski
Copy link
Author

bradrydzewski commented Oct 2, 2019

added /api/repos endpoint which is limited to system administrators at this time. It returns a paginated list of all repositories in the database, including disabled repositories.

GET /api/repos
GET /api/repos?page=2&per_page=100

since this endpoint is restricted we do not enforce a maximum page size. you can therefore dump all repositories in the system in the response, however, please be consider performance and resource consumption when doing so. Also, we may choose to limit per_page to 100 maximum results in the future.

GET /api/repos?page=1&per_page=5000

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

No branches or pull requests

1 participant