SMB ships with a basic test harness that can be use to exercise the REST APIs. The test harness is available both on an enterprise SMB installation, and SaffronSierra services. The test harness is implemented using HTML and Javascript. It leverages jQuery to make ajax calls and process the JSON responses that are returned from the SMB REST calls.
You can access the test harness by pointing your browser to:
http://{your_server_name_goes_here}:8080/harness
So, for example if you have a SaffronSierra service running with the sub-domain "acmeco" then the test harness could be accessed using the following URL:
http://acmeco.saffronsierra.com:8080/harness

The test harness provides a number of form-based HTML pages that are tailor made for various SMB API calls. It also provides a "Generic" HTML form that allows you to make API calls that may not be supported by the more specific pages. You'll probably find that you spend most of your time using the "Generic" page.

When using the test harness you'll need to make sure that you use the proper "Access Key", and "Secret Code" for your service. If you're using SaffronSierra your access key will be your username, and you can find your secret code by logging into the SaffronSierra console. If you're using an enterprise SMB installation then you'll need to consult your system administrator to determine what access key and secret code you should use. For more details on how the access key and secret key are used take a look at the authentication page.
The test harness is part of our sample code and is available for you to download and modify in any way you'd like.
Comments (0)
You don't have permission to comment on this page.