Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence - Java REST Client library

Hi everybody,
Recently I've been using Jira REST API through one of Atlassian libraries for java: com.atlassian.jira.jira-rest-client-api.jar - there are a lot of examples and quite good docs about how to use it. 
Not I want to do the same with Confluence and I've found some libraries like: com.atlassian.confluence.confluence-rest-client.jar but I can't find any documentation and examples of how to use it in java apps. 
Is this library quite similar in use to the jira's one? Can you give me some links to examples or documentation? 
Any help will be appreciated:)
Many thanks, Marcin

4 answers

0 votes

Marcin,

We have documentation on both the JAVA API and REST API for Confluence below:

Have a look there, and if you don't find what you need, please let us know exactly what you're trying to do.

Shannon

I too am trying to update my cloud confluence pages by getting / posting to https://my-confluence-id.atlassian.net/wiki/rest/api with a Java client. 

I am able to do the basics such as get my content in JSON format.

But I am expecting to see Java classes to facilitate JSON serialization and deserialization of the requests and responses. I see the Javadoc and the REST API but I don't see a reference to the maven repo that contains the relevant Java model files. Could you kindly post that URL?

I sincerely hope that you do not expect developers to build requests with JSONObjects and JSONArrays and parse the JSON responses with home grown code.

Hi Bruce,

I would recommend raising a new question so someone familiar with that topic can assist you.

If you're actively developing something for Confluence then I recommend the developer forum.

Thank you for your understanding!

https://docs.atlassian.com/ConfluenceServer/javadoc/6.8.0/?_ga=2.136506032.1443004396.1532937685-475902104.1531735149

I think this is what you need. Unfortunately can't find any class such as com.atlassian.jira.rest.client.api.JiraRestClient but for Confluence. Tell me if you find something, please.

0 votes

Hai 

I am also looking for similar Java client instead of writing home grown code. Can you please share the details around this


Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

⚡️NEW Group for Confluence Cloud Admins

Calling all Confluence Cloud Admins!  We created a new Community Group to support your unique needs as Confluence admins. This is a group where you can ask questions, access resou...

95 views 2 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you