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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.