Test icon Test Data Service Page

Once a dataservice has been created in the workspace, it is available to be deployed for testing. This involves:

On successful deployment, the testing page is available for executing data queries through the dataservice. Queries can be crafted using two forms.

OData

OData is a standard for providing metadata for the querying of restful interfaces. Teiid provides such a restful interface to its services on deployment. Therefore, the crafting of a specific URL, which includes the quering metadata, is enough to enact the query and return the appropriate results.

Since the OData URL can quickly become complex, a set of widgets is provided to help create it.

Once the URL has been generated, the 'Submit' button can be clicked and the results table should be displayed containing those results that conform to the query parameters. By default, the 'Tabular' tab is selected, displaying the results in a tabular format. However, a second 'Raw' tab is available that displays the results in their raw json-formatted text.

SQL

An alternative search tool that provides a text editor for entering a teiid-compatible SQL query directly. Once entered, the query can be submitted and the results table will displayed accordingly. The number of records can be limited using the 'Record Limit' and can be used in combination with 'Starting Record Index' to return a subset of those results that the query returns.