Page Tree:

Child pages
  • Frequency Service Contract Description - v0.8-pre-alpha

This wiki space contains archival documentation of Project Bamboo, April 2008 - March 2013.

Skip to end of metadata
Go to start of metadata

Service Description

The Resource Oriented Architecture (Web Services) interface provides ways for web-based clients to perform frequency queries.


  • Codebase: ${REPOSITORY_ROOT}/sandbox/christensen/trunk/

Note that references to schemas, below, are relative to ${REPOSITORY_ROOT}.


RESTful service methods for invoking the Frequency Service via HTTP.

Base URLs

It is assumed in this documentation that no centrally-run instances of the Bamboo Services Platform will be running after the project ends on 31 March 2013. Therefore, base URLs are assumed to be on a developer's machine, localhost. The base URL with a port number assumes that the BSP is running unsecured; the URL without a port number assumes that security is enforced and Apache Web Server is intercepting and redirecting service calls. Please see the page Identity and Access Management - Authentication and Authorization for context, as well as links to installation and configuration instructions for secured instances of BSP.

Note that ONLY services at v0.9 or greater will run properly in a secured instance of the BSP.

Currently available base URLs:



HTTP Headers and Output Formats

The service supports the following values in the HTTP Accept header:

  • application/xml

Output will be serialized accordingly.

Sample xml Frequency Service Output

Calling Method and Arguments

Perform frequency table query.

GET /frequency/$service/$identifier?q=$query


Adheres to the FrequencyServiceResponse schema - ${REPOSITORY_ROOT}/sandbox/christensen/trunk/frequency-service/resource/src/main/resources/FrequencyServiceResponse.xsd

Error Responses

If an error occurred, some non-2xx code will be returned. Check the HTTP Status Code that is returned in the response's HTTP headers for the specific error. The following errors may be returned in response to Frequency Service requests:

Error (Status Code)


Returned When


Bad Request

Request is missing required parameters


Not Found

The requested document does not exist and/or the requested analysis returned no results


Internal Server

A service error occurred



Frequency service API.


Calling methods and arguments

Perform frequency query.
  * Perform frequency query.
  * @param  service name
  * @param  identifier that is specific to service
  * @param  query to perform
  * @throws IllegalArgumentException if invalid argument.
  * @throws IllegalStateException if no collection available.
  * @throws FrequencyException if request cannot be completed
  * @return Frequency results
  public abstract Frequency getFrequency(String service, String identifier, String query) throws FrequencyException;