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
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.
You can use the diffstat endpoint in the 1.0 API to get a list of modified files: https://confluence.atlassian.com/bitbucket/changesets-resource-296095208.html#changesetsResource-GETstatisticsassociatedwithanindividualchangeset
For more info and related discussion, see this post:
If you came here looking for how to retrieve files in a commit using the 2.0 API:
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events