The Atlassian REST API Browser (RAB) is a tool for discovering REST and other types of remote APIs exposed by Atlassian applications. The RAB displays the APIs exposed by the application as well as by any plugins installed in the application.
The RAB is available as part of the Developer Toolbox or on its own. Any developer instance of an Atlassian application has the Developer Toolbox included.
This page tells you how to use RAB to document any REST resources that you have added to an Atlassian application. (For more about how client developers would use the RAB, see Using the REST API Browser.)
If you add a REST API to a plugin using the SDK and install the plugin to the Atlassian application, the RAB automatically displays its REST API. You only need to add the API descriptions that you want to appear in the RAB.
To add those descriptions, use Javadoc annotations described in the Oracle guide to writing Javadoc comments: How to Write Doc Comments for the Javadoc Tool. RAB will display the inline documentation inside the browser.
Note that:
application-doc.xml
file in your src/main/resources/
folder that can provide any custom static documentation in the WADL file.@PublicApi
or @ExperimentalApi
. Any resource without one of these two annotations will be treated as private. These annotations are defined in the atlassian-annotation
library, which your Atlassian application should already be using. Other developers who have your plugin installed will consider public APIs safe to use in their own code, whereas experimental APIs will be considered subject to change.The RAB source code is available on Bitbucket.
Rate this page: