Using the REST API Browser
The Atlassian REST API Browser (RAB) is a tool for discovering the REST APIs and other remote APIs available in Atlassian applications, including JIRA and Confluence.
The RAB shows you the REST and JSON-RPC resources in the application, displays the methods for each resource, and allows you to make test calls against the methods. The RAB shows you the core application resources, as well as any exposed by plugins you have installed as well. If the REST APIs use the prescribed Javadoc annotations, you will also see inline documentation, including parameter descriptions.
Getting the REST API Browser
Already using the Atlassian Plugin SDK? Then you already have the RAB. See "Using the REST API Browser locally" below to get started.
Using the REST API Browser in Atlassian Cloud applications
Although the REST API Browser is included in JIRA Server, Confluence Server and Stash instances by default, or any application with the developer toolbox plugin, it is not available in Atlassian Cloud applications.
Using the REST API Browser locally
To use the RAB on an Atlassian application instance started with the SDK, follow these steps:
atlas-run-standaloneas usual. The Atlassian application (JIRA, Confluence, or any of the others) will be installed with the REST API Browser plugin enabled.
- Log in to the application as an administrator and navigate to the administration console.
- Click REST API Browser from the navigation menu (it's with the ADVANCED or ADD-ONS links).
Choose a resource from the left menu. You can either browse through the list, or enter text in the Search field to filter the resources that are shown.
The resource page appears. Notice that the RAB displays the HTTP methods (GET, POST, PUT, and so on) applicable to each resource as tabs at the top of the page. It also contains fields for any parameters accepted by the resource.
- To test a resource, enter any required parameter values in the fields and click Send.
The results appear in the Response section of the page, as shown by the following screenshot.
Public versus Private APIs
By default, the RAB only shows the API resources that are specified to be public. However, you can clear the Show only public APIs checkbox to see private APIs as well.
However, we do not recommend using non-public APIs in your plugin or client code. Whether private or experimental, non-public APIs are subject to change and are not supported.
Using the REST API Browser to document your APIs
If you are developing a Java plugin with a REST API of its own, you can ensure that RAB will document your REST resources too. See Documenting your APIs with the Atlassian REST API Browser.