Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

what is the v2 API to get file content?

shrimpy wu May 24, 2016

This question is in reference to Atlassian Documentation: components Resource

What is the equivalent of below api in v2 api? I tried to change "1.0" to "2.0" but it doesn`t work

 

curl -v -u {username}  https://api.bitbucket.org/1.0/repositories/{username}/{repo}/raw/{branch}/{file path}

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
abhin-atl
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 24, 2016

Unfortunately, the v2 API is not complete. In particular, it doesn't yet have support for getting file content. Unfortunately, you'll have to continue using the v1 API for pulling down the file content.

0 votes
shrimpy wu May 25, 2016
TAGS
AUG Leaders

Atlassian Community Events