Gadgets and Dashboards 2.0 : Using Atlassian REST APIs in your Gadget
This page last changed on May 28, 2009 by smaddox.
In the gadgets world, the UI is rendered entirely using HTML and JavaScript (on the dashboard server). To get dynamic data into the gadget, you will make Ajax calls using makeRequest back to the originating server. Why a special API for making requests? When we render gadgets, even if the gadget specification is coming from your server out there, it is pulled into the dashboard server and parsed and rendered into HTML on the dashboard server. So your JavaScript can only talk to the server where the dashboard is running. The makeRequest call will proxy back (in a process that is called 'phoning home') to the originating server to request data, using one of the following:
|
![]() |
Document generated by Confluence on Nov 22, 2009 17:46 |