Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

When using Confluence Cloud REST API, how do you generate and parse JSON using java?

Bruce Wilcox
Contributor
July 19, 2018

I am new Confluence Cloud user. I have created some Confluence pages manually and now want to use the REST API to create pages programmatically using Java.

I created a java client using the JAXRS framework. So far, I am able to interface with the REST API and receive JSON responses.

I am looking for documentation on how to (1) deserialize the JSON responses and (2) serialize JSON POST requests -- using java.

I have only been able to find examples that use the JSONObject class (https://stackoverflow.com/questions/24504631/how-to-update-a-page-in-confluence-5-5-1-via-rest-call).

I would expect that the API request and response objects would have related Java classes (models) that can be serialized and deserialized using the Jackson or similar JSON library.

Where is the Maven repo that contains these models? And where is the related Javadoc? Is there other documentation?

Thanks in advance for your assistance.

1 answer

0 votes
Thorsten Thorben
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!
November 21, 2018

Hi @Bruce Wilcox, I am now facing the same problem as there is no official Confluence client library available(?). May I ask how you solved your problem?

Thank you very much!

Bruce Wilcox
Contributor
November 21, 2018

I have not been able to find a solution.

And I am disappointed that a paid product only provides community support. I am not aware of a way to escalate this request to Atlassian themselves.

If you are able to get an answer, please let me know.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events