Bitbucket 私有服务器 REST API

Bitbucket private server REST API

当托管在私人服务器上时,我找不到任何关于 bitbucket API 的文档。 官方一:https://confluence.atlassian.com/bitbucket/use-the-bitbucket-cloud-rest-apis-222724129.html 我们托管了 bitbucket 服务器,只是更改主机是行不通的,看起来整个 API 都不一样了。

simply changing the host doesn't work, it looks like the whole API is different.

我不知道为什么会这样,但看来你是对的。 Bitbucket Cloud(您已找到)和 Bitbucket Server.

有不同的 API 文档

这API肯定是不一样的:

  • Bitbucket Cloud 有多个 changesets endpoints,例如

    GET https://api.bitbucket.org/1.0/repositories/{accountname}/{repo_slug}/
        changesets?limit=integer?start=node
    
  • Bitbucket Server 根本没有 changesets 个端点,尽管它 有一些 changes 个端点