How to get a full list of repositories that a user is allowed to access?

前端 未结 4 1591
庸人自扰
庸人自扰 2021-01-04 01:29

I have found bitbucket api like:

https://bitbucket.org/api/2.0/repositories/{teamname}

But this link return 301 status (moved permanently t

4条回答
  •  迷失自我
    2021-01-04 01:54

    Unfortunately, from what I see in the documentation, there is no way to list all private repositories which the user has access to.

    GET https://api.bitbucket.org/2.0/repositories
    

    "Returns a paginated list of all public repositories." according to the doco.

    GET https://api.bitbucket.org/2.0/repositories/{owner}
    

    "Returns a paginated list of all repositories owned by the specified account or UUID." according to the doco.

    So, getting all private repositories not necessarily owned by the user is either not possible, or I haven't found the right endpoint, or the documentation is inacurate.

提交回复
热议问题