My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
FirefoxPosterForRestApi  
Overview of using Firefox/Poster for manipulating Hackystat REST APIs
Updated Feb 4, 2010 by philipmj...@gmail.com

1.0 Motivation

Several 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:

  • You can interact directly with the service and see what data is returned without any "prettification" by the browser.
  • You can use all HTTP operations: POST, PUT, DELETE, as well as the GET operation supported by the browser address bar.
  • You can easily specify authentication credentials.

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 SensorBase

A query to the sensorbase service:

After pressing the "GET" button, the response is:

3.0 DailyProjectData

A query to the dailyprojectdata service:

After pressing the "GET" button, the response is:

4.0 Telemetry

A query to the telemetry service:

After pressing the "GET" button, the response is:

Comment by radhakri...@gmail.com, May 10, 2011

krish


Sign in to add a comment
Powered by Google Project Hosting