跳到主要内容

List Repositories Starred by User

GET 

/api/v5/users/:username/starred

Request​

Path Parameters

    username stringrequired

Query Parameters

    access_token string

    User authorization code

    sort string

    created/last_push Sort by repository creation time (created) or last push time (updated), default: creation time

    direction string

    sort direction, default: desc

    page integer

    The current page number

    per_page integer

    The number of items per page, with a maximum of 100. The default is 20.

Responses​

Successful Response

Response Headers
    Schema
    • Array [
    • idRepository ID (integer)
      full_namefull repository path (string)
      human_nameFull warehouse name (string)
      urlRepository details access URL (string)
      namespace object
      idinteger
      typestring
      namestring
      pathstring
      html_urlstring
      pathRepository path (string)
      nameRepository name (string)
      parentfull_nameParent repository name (string)
      descriptionRepository description (string)
      statusWarehouse status, 0: Start (indicating the warehouse is not archived), 2: Closed (indicating the warehouse is archived) (string)
      ssh_url_to_reporepository ssh git address (string)
      http_url_to_repoLibrary HTTP Git URL (string)
      web_urlRepository web access URL (string)
      created_atcreation time (string)
      updated_atUpdate time (string)
      homepageRepository homepage (string)
      membersstring[]
      parent object
      full_namestring
      human_namestring
      forks_countfork count (integer)
      stargazers_countstar count (integer)
      relationcurrent user's role in relation to the repository (string)
      permission object
      pullinteger
      pushinteger
      admininteger
      internalinternal open source (integer)
      open_issues_countThe number of open issues (integer)
      has_issueinteger
      has_issuesWhether to enable issue feature (integer)
      watchers_countwatch count (integer)
      enterprise object
      idinteger
      pathstring
      html_urlstring
      typestring
      default_branchDefault branch (string)
      forkWhether to fork the repository (integer)
      pushed_atThe most recent code push time (string)
      owner object
      idstring
      loginstring
      namestring
      typestring
      issue_template_sourceIssue template source project: Use repository issue templates as the template; enterprise: Use corporate work items as the template (string)
      project_creatorRepository creator (string)
      privateprivate repository flag (integer)
      publicIsRepositoryPublic (integer)
    • ]