|
FirefoxPosterForRestApi
Overview of using Firefox/Poster for manipulating Hackystat REST APIs
1.0 MotivationSeveral Hackystat services provides REST APIs, such as the SensorBase REST API, the DailyProjectData REST API, and the Telemetry REST API. These services return XML representations of Hackystat data and analyses, which are then transformed into more user-friendly HTML representations by such user interface services as the ProjectBrowser or TelemetryViewer. In many situations, such as writing new services or clients, it is useful to become acquainted with the REST API directly, and learn how to send and receive XML data with a given service. To do this, one could write a simple program such as a Java application that uses the various Java-based client classes, but a much simpler and faster approach is to use the Poster plugin for Firefox. The advantages to using Poster are:
The goal of this page is to simply show example invocations of the Poster plugin for Hackystat services and the return values. This will hopefully make it easier for users to get started using Poster. 2.0 SensorBaseA query to the sensorbase service:
After pressing the "GET" button, the response is:
3.0 DailyProjectDataA query to the dailyprojectdata service:
After pressing the "GET" button, the response is:
4.0 TelemetryA query to the telemetry service:
After pressing the "GET" button, the response is:
|
krish