Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

are there common rest api to get commit details for cloud and non cloud account?

Ramya Ravi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 26, 2021

Seems there are two differetn api's and differetn response format for onprem and cloud versions

Onprem API
https://bitbucket.test.net/rest/api/1.0/projects/{projectname}/repos/{reponame}/commits/{commitid}


saas(cloud) API
https://api.bitbucket.org/2.0/repositories/{workspaceID}/{reponame}/commit/{commitid}

 

any alternate solutions for it?

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 10, 2021

Hi @Ramya Ravi

Welcome to the community.

I'm afraid Bitbucket Cloud's API schema is different from Bitbucket Server.

For the Bitbucket Cloud commit's API endpoint, you can check out this documentation for the complete details of the API response.

Right now, you will have to parse Bitbucket Cloud APIs differently from Bitbucket Server.

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events