1. Bitbucket
  2. Public Issue Tracker
  3. master

Issues

Issue #5328 resolved

Impossible to get contents of branches with a slash ("/") in their name using the API (BB-6670)

Ville Saalo
created an issue

The API apparently does not support branches that have a forward slash in their name, e.g. "feature/test". For example, https://api.bitbucket.org/1.0/repositories/katoquro/test_repo/src/feature/test/ should return the contents of the "feature/test" branch of the https://bitbucket.org/katoquro/test_repo repository, but instead returns a plain text "Not Found". It doesn't work either when I encode the slash with %2F.

Comments (5)

  1. Nicolas Venegas

    Hi

    Most API URLs should now with with branches that have a '/' in their name.

    However, URLs for specific changesets, e.g.,

    • /api/1.0/repositories/:user/:repo/changesets/:commit,
    • /api/1.0/repositories/:user/:repo/changesets/:commit/diffstat, and
    • /api/1.0/repositories/:user/:repo/changesets/:commit/comments

    won't work with a branch name that has a /.

  2. Log in to comment