Switch the repos page to use a single API call, rather than one per namespace + one for star repos

This commit is contained in:
Joseph Schorr 2015-05-06 19:15:03 -04:00
parent d53f2f9fc8
commit e647d91e8b
4 changed files with 72 additions and 60 deletions

View file

@ -103,7 +103,8 @@ class RepositoryList(ApiResource):
@query_param('page', 'Offset page number. (int)', type=int)
@query_param('limit', 'Limit on the number of results (int)', type=int)
@query_param('namespace', 'Namespace to use when querying for org repositories.', type=str)
@query_param('public', 'Whether to include public repositories.', type=truthy_bool, default=True)
@query_param('public', 'Whether to include repositories not explicitly visible by the user.',
type=truthy_bool, default=True)
@query_param('private', 'Whether to include private repositories.', type=truthy_bool,
default=True)
@query_param('sort', 'Whether to sort the results.', type=truthy_bool, default=False)