Bitbucket : How to get modified files of a commit in JSON format from REST API

I'm using Bitbucket cloud edition and wanted to fetch all modified files of a commit for one of my respository.

I prepared the API but receving output in text format instead of JSON.

I used following API

 

https://api.bitbucket.org/2.0/repositories/<MyTeamName>/<My_Repo_Name>/patch/4b2cc72

here 4b2cc72 is commit ID (Hash)
 I'm getting response in Text format.


Please share the extact API for getting the modified files of a commit(s) through REST API.

1 answer

0 votes

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

655 views 5 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you