Repositories

获取用户可见仓库。List user visible repositories.

获取指定用户有指定以上权限并且客人态可见的仓库。 List repositories where the specified user has the specified permission level or higher and are visible to guests. 访问令牌调用此接口需包含以下权限。Required permissions for access token. account-engage:r

get/users/{username}/repos

Request

  • Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
  • URL: https://api.cnb.cool/users/{username}/repos
  • Auth: API key in header Authorization

Path parameters

usernamestring required

用户名。Username.

Query parameters

searchstring

按仓库筛选。Filter by repositories.

filter_type'private' | 'public' | 'secret'

仓库类型。Repositories type.

flags'KnowledgeBase' | 'NPC' | 'Skills'

仓库类型标记,逗号分隔。Repository type flags, comma separated

flags_match'intersection' | 'union'

flags 多值匹配模式。Flags match mode when multiple flags provided

status'active' | 'archived'

仓库状态。Repository status

role'Guest' | 'Reporter' | 'Developer' | 'Master' | 'Owner'

最小仓库权限,默认owner。Minima repository permissions.

pageinteger

分页页码。Pagination page number.

page_sizeinteger

分页页大小。Pagination page size.

descboolean

排序顺序。Ordering.

order_by'created_at' | 'last_updated_at' | 'stars' | 'slug_path' | 'forks'

排序字段。Order field.

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.