Using the API leads to 404 page

Timo Zimmermann July 7, 2017

Hello,

I use a privately hosted Bitbucket server. Now I would like to download a specific file from my repo.

When I open the file in my browser the following URL is shown:

https://example.com/projects/MR/repos/iacp/browse/scripts/main.py

To get this file I used the following API call:

curl -u username:password https://example.com/rest/api/1.0/projects/MR/repos/iacp/raw/master/scripts/main.py

Using this command results in a 404 page in an XML format. What am I doing wrong?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events