Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

What is the URL for REST interface for internal Bitbucket server?

Thomas Pyatt
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!
June 4, 2019

Hello, I am very new to BitBucket, and REST interfaces.  I would like to eventually access the Bitbucket REST interface to get a history of pull requests made on our project.  Initially, my goal is to access the Bit Bucket REST interface from a Java application and pull and parse the result (JSON String?)  in a "Hello World" type application.

We are using BitBucket version 5.16.1, and using org.jboss.resteasy.client.jaxrs classes ResteasyClient | ResteasyClientBuilder | ResteasyWebTarget I am able to access some of our BitBucket webpages which contain a JSON string and parse those.

Our bit bucket server is running on http://<ip address>:7990/ so based on documentation such as https://docs.atlassian.com/bitbucket-server/rest/6.3.1/bitbucket-rest.html, I attempted to access the REST api at http://<ip address>:7990/rest/api/2.0/ (or http://<ip address>:7990/rest/api/1.0/) ... but nothing.

So is there a standard URL where I would find my REST interface?  Or is this error completely off-base?  Is there a Hello World type example that shows this from start to finish?

 

Thanks

 

 

--> Problem was incorrect REST api in my url, missed in my earlier testing.

 

 

1 answer

1 accepted

0 votes
Answer accepted
Dave Theodore [Coyote Creek Consulting]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 4, 2019

I recommend reading over the REST API docs. There are examples of how things work and a complete list of methods there.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events