Can we use bitbucket's browser API (internal api) into our custom code

mohan yadav
Contributor
May 21, 2024

Hi,

I am using bitbucket rest API but there are some functionality which does not exist in rest API 2.0. So for example I want to know if there will be any conflicts before creating PR.
But on bitbucket UI we can see while/before creating PR for any conflicts.

 

So can I use "https://bitbucket.org/!api/internal/repositories/.............." as below

 

Capture.PNG

1 answer

1 accepted

0 votes
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 23, 2024

Hello @mohan yadav ,

I've recently responded to your previous post with a suggestion to use the Compare two commits diffstat endpoint to get the conflict status of the files comparing two branches.

Although it's possible to execute manual requests to internal API endpoints, we do not recommend relying on them. Unlike the public endpoints, they may change at any time without prior notice.

Thank you, @mohan yadav !

Patrik S 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events