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.
I recommend reading over the REST API docs. There are examples of how things work and a complete list of methods there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.