tree: 272492ce9aa895e6876e3de8d345f5b2f5417218 [path history] [tgz]
  1. devices-api/
  2. general-api/
  3. guides/
  4. results-api/
  5. sessions-api/
  6. tests-api/
  7. README.md
tools/wave/docs/rest-api/README.md

REST API - WAVE Test Runner

The REST API allows the WAVE server to be integrated into other systems. Every call must be preceded with a namespace or web root, which is omitted in this documentation. The default web root is /_wave, which can be changed in the config.json using the keyword web_root.

Additional REST API Guides can help to understand how to use these endpoints in context.

Sessions API

NameDescription
createCreates a new test session.
read sessionReads a sessions configuration.
read sessionsReads all session tokens, expandable with configs and statuses
read publicReads all public sessions tokens.
updateUpdates a session configuration.
deleteDeletes a test session.
statusReads the status and progress of a session.
startStarts a test session.
stopStops a test session.
pausePauses a test session.
findFinds a session token by providing a token fragment.
labelsAttach labels to sessions for organization purposes.
listen eventsRegister for sessions specific events.
push eventsPush session specific events.

Tests API

NameDescription
read allReads all tests available.
read sessionReads all tests that are part of a session.
read nextReads the next test to run in a session.
read last completedReads the last completed tests of a session.
read malfunctioningReads the list of malfunctioning tests of a session.
update malfunctioningUpdates the list of malfunctioning tests of a session.
read available apisReads all available APIs names and paths.

Results API

NameDescription
createCreate a new test result for a test in a session.
readRead all test results of a session.
read compactRead the number of passed, failed, timed out and not run tests of a session.
import sessionImport session results.
import api resultsImport results of a specific API into existing session.
downloadDownload all session results to import into other WMATS instance.
download apiDownload all results of an API.
download all apisDownload all results of all APIs.
view reportView the WPT report of an API of a session.
view multi reportView the WPT report of an API of multiple sessions.
download overviewDownload an overview of results of all APIs of a session.
view reportRead an url to a hosted version of a WPT report for an API of a session.
view multi reportRead an url to a hosted version of a WPT report for an API of multiple session.

Devices API

NameDescription
createRegisters a new device.
read deviceRead information of a specific device.
read devicesRead a list of all available devices.
register event listenerRegister for a device specific event.
send eventSends a device specific event.
register global event listenerRegister for a global device event.
send global eventSends a global device event.

General API

NameDescription
statusReturns information on how the server is configured.