Blog

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

So we opened the REST API Browser which we have installed on our Confluence instance to easily interact with Confluence REST APIs, including our own. The REST Browser supports using the APIs by presenting documentation for the service and its parameters. This is of great help to explore APIs as far as the developers have provided some documentation.

projectdoc-box-caution

The issue has been resolved! See Resolved: REST API Browser showing API documentation again! for details!


projectdoc-section
titlePath Problem with the REST API Browser

We had a look at our APIs and indeed, as soon as we launched any REST call, the response is always 404.

We realized that the browser shows a wrong path to our REST services. Instead of projectdoc/1/document it shows projectdoc/1/projectdoc/1/document, having the first two path elements duplicated.

REST API with Path Problems on Confluence 6.14.x

This is the case with REST API Browser version 3.2.2 and Confluence 6.14.1. Since the REST API Browser is not officially supporting the latest Confluence version (at the time of writing), we checked with the latest supported version 6.13.2. The result was the same. But the same REST API Browser on Confluence 5.10.9 did not show this issue. Also 6.12.1, 6.11.1, 6.10.2 and probably all previous version of Confluence 6.x do work and show the correct paths:

REST API without Path Problems on Confluence 5.10.x

The problem is also shown for apps provided by Confluence, like the REST API of the AppLinks OAuth plugin.

REST API of Atlassian Plugin with Path Problems on Confluence 6.14.x

...