https://bitbucket.org/api/2.0/ returns exclamation points inside links of repos

Issue #19138 new
Theodora Boudale staff created an issue

Summary

A request to https://bitbucket.org/api/2.0/repositories/username

returns a list of repos where the links contain ! after the host

Steps to Reproduce

  1. Run the following API call
curl -sL -X GET -u username:password https://bitbucket.org/api/2.0/repositories/username

Expected Results

The links for the repos should be like:

https://bitbucket.org/api/2.0/repositories/username/repo-slug/watchers

Actual Results

The links for the repos are as follows:

https://bitbucket.org/!api/2.0/repositories/username/repo-slug/watchers

Workaround

Use https://api.bitbucket.org for the API call instead of https://bitbucket.org/api/2

Comments (0)

  1. Log in to comment