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

Why does the Atlassian Confluence (5.5.3) REST Browser (3.0.7) not show all rest API entries

Jeff Porter July 2, 2014

I've installed Confluence on my local machine, but same problem exists on the Atalassin demo site.

Demo site : https://confluence.atlassian.com/plugins/servlet/restbrowser#/

According to the screen and docs of the REST Browser, I should able to enter "project" or "api" to see the REST API. See here REST Browser plugin

But on demo site, and my local install I can only see the "json-rpc" calls, e.g. "json-rpc/confluenceservice-v2/updatePage"

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Tiago Comasseto
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2014

You may try without the slash "/" http://awesomescreenshot.com/0fe331gs15

Cheers

Jeff Porter July 2, 2014

I can see list of calls such as...

json-rpc/concluenceservice-v2/updatePage

But nothing that looks like the REST API described here.

https://developer.atlassian.com/static/connect/docs/scopes/confluence-rest-scopes.htm

Should the REST Browser show the REST API ?l

0 votes
Petch
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 3, 2014

confluence.atlassian.comis not showing the new /rest/api resources due to the REST API Browser not being upgraded.

This upgrade (to 3.0.7) is required to see "versionless" resources in the REST API browser. This upgrade was an oversight, and is being organised right now. Not specific ETA just yet, but you may notice it working before I can provide an update.

Jeff Porter July 3, 2014

Thank Craig! Please keep me updated!

This is explains why I can't get the "online" demo site to work, I'm still puzzled over why running a local install, via "atlas-run-standalone" doesn't work.

:-D

0 votes
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 2, 2014

Hi Jeff,

The Confluence REST Scopes document that you linked refers to parts of the Confluence API that change across the multiple different versions of Confluence that are available for download.

The new Confluence REST API (which includes the resources that have a URL starting with "/rest/api/") is only available in Confluence OnDemand and Confluence 5.5 and later. The REST Browser on https://confluence.atlassian.comdoes not show these APIs because it's only running a version of Confluence 5.4 - I assume this is also the case for the version of Confluence that you are running in your local install.

For earlier versions of Confluence, there is a "prototype" REST API (which includes the resources that have a URL starting with "/rest/prototype/{version}").

The "prototype" API, and the JSON-RPC and XML-RPC APIs are available in all versions of Confluence, but they are marked with a deprecation warning as of Confluence 5.5 and will eventually be removed in a future version of Confluence.

Jeff Porter July 2, 2014

Thanks for the comments.

I agree that the "Confluence REST Scopes" link I pasted refers to the older version of the REST API. Newer versions use an endpoint format of "rest/api/xxx"

The REST Browser states it supports "Confluence 5.1 - 5.5.3" See https://marketplace.atlassian.com/plugins/com.atlassian.labs.rest-api-browser

I'm testing locallay on version 5.5.3 and 5.5.1

My local install is started by..

atlas-run-standalone --product confluence --version 5.5.3 --bundled-plugins com.atlassian.plugins:atlassian-connect-plugin:1.0.2,com.atlassian.jwt:jwt-plugin:1.0.0,com.atlassian.bundles:json-schema-validator-atlassian-bundle:1.0-m0 --jvmargs -Datlassian.upm.on.demand=true

The online demo shows Atlassian Confluence 5.5.4-m2, Not version 5.4

see "https://confluence.atlassian.com/plugins/servlet/".

I would expect the "REST Browser" to show the "rest/api" endpoints. If not, can you tell me why?

Is the REST Browser Broken?



Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 2, 2014

What version of the Atlassian Plugin SDK do you have installed? You can check by running the 'atlas-version' command. I'm using SDK version 5.0.3 and the new Confluence REST API is loading in the browser OK for me:

Jeff Porter July 3, 2014

This is what I get...

C:\Users\porterj\Downloads>atlas-version

ATLAS Version: 5.0.3

ATLAS Home: C:\Users\porterj\atlassian-plugin-sdk

ATLAS Scripts: C:\Users\porterj\atlassian-plugin-sdk\bin

ATLAS Maven Home: C:\Users\porterj\atlassian-plugin-sdk\apache-maven-3.2.1

--------

Executing: "C:\Users\porterj\atlassian-plugin-sdk\apache-maven-3.2.1\bin\mvn.bat" --version -gs C:\Users\porterj\atlassian-plugin-sdk\apache

-maven-3.2.1/conf/settings.xml

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T13:07:52-04:30)

Maven home: C:\Users\porterj\atlassian-plugin-sdk\apache-maven-3.2.1\bin\..

Java version: 1.6.0_43, vendor: Sun Microsystems Inc.

Java home: C:\tools\Java\jdk1.6.0_43_32bit\jre

Default locale: en_GB, platform encoding: Cp1252

OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

It doesn't seem to mention the SDK version though.

Any ideas?

Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 9, 2014

The "ATLAS Version" is the SDK version, so you're on the same one as me.

How are you starting Confluence? Can you show me the command you're using?

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events