Networked Media Open Specifications
HOME DOCS GITHUB WIKI FAQs TOOLS... IS-XX... MORE... SEARCH

Using the API

The testing tool comes with a minimal API for running tests remotely and configuring the testing tool instance dynamically. This is particularly useful for automated testing purposes. The two endpoints presented by the API are:

/api

[GET, POST]

This endpoint accepts (almost) identical inputs as the non-interactive command line utility, except hyphens (-) are replaced with underscores (_) for key values.

For a list of test suites, the body of the POST request would be:

{
  "list_suites": true
}

To execute a test for a remote API, the body of the POST request would look something like:

{
  "suite": "IS-05-01",
  "host": ["192.168.1.2"],
  "port": [80],
  "version": ["v1.0"]
}

/config

[GET, PATCH]

To change the testing tool to restrict the maximum number of resources that time consuming tests run against, the body of the request would be:

{
  "MAX_TEST_ITERATIONS": 3
}

Known Issues