How to get started with calling Rest APIs for wiki confluence 3.5?

I've to create a script for calling Rest API for automating tasks for Wiki Confluence 3.5.

How should I start? I read the content on getting started with SDK but it leads to starting JIRA server using following command:

atals-run-standalone - product JIRA.

Please give directions on how to start.

1 answer

Is your problem about starting the product, or about getting documentation about the REST apis? I'll answer about the REST apis:

If you could upgrade your version of Confluence*, you could download the REST API Browser plugin from the Atlassian Marketplace and install it in Confluence, and you'd get all the REST documentation easily.

Since you probably can't upgrade Confluence:

  • Download the source code of Confluence 3.5 from https://my.atlassian.com. If you've paid for a license ($10), you can access it.
  • Search for files which contain the text "javax.ws.rs". Those files describe Jersey resources which define the APIs of REST services. You need to be familiar with Java and Jersey to understand them.
  • REST APIs are deployed at {baseUrl}/rest/{key}/{version}/path..., where:
    • {baseUrl} is the full base URL of Confluence including the context path, e.g. http://confluence:1990/confluence
    • {key} is the key of the module in atlassian-plugin.xml, if the resource was defined in a plugin.
    • {version} is the version of the same module in atlassian-plugin.xml.
    • /path is the annotation in the Java class, such as @Path("/path").

Honestly, I wouldn't undertake such a task without first upgrading Confluence. Keeping all systems up to the latest version is pretty important when a company wants full support and best-of-the-class tools.

* Upgrading from Confluence 3.5 to 5.9 is a big change, in terms of user habits and data migration, but it's worth it.

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

68 views 3 2
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you