| 1 |
# REST API - [WAVE Test Runner](../README.md) |
| 2 |
|
| 3 |
The REST API allows the WAVE server to be integrated into other systems. Every |
| 4 |
call must be preceded with a namespace or web root, which is omitted in this |
| 5 |
documentation. The default web root is `/_wave`, which can be changed in the |
| 6 |
config.json using the keyword `web_root`. |
| 7 |
|
| 8 |
Additional [REST API Guides](./guides/README.md) can help to understand how to |
| 9 |
use these endpoints in context. |
| 10 |
|
| 11 |
## Sessions API <a name="sessions-api"></a> |
| 12 |
|
| 13 |
| Name | Description | |
| 14 |
| -------------------------------------------------- | -------------------------------------------------------------- | |
| 15 |
| [`create`](./sessions-api/create.md) | Creates a new test session. | |
| 16 |
| [`read session`](./sessions-api/read.md) | Reads a sessions configuration. | |
| 17 |
| [`read sessions`](./sessions-api/read_sessions.md) | Reads all session tokens, expandable with configs and statuses | |
| 18 |
| [`read public`](./sessions-api/read-public.md) | Reads all public sessions tokens. | |
| 19 |
| [`update`](./sessions-api/update.md) | Updates a session configuration. | |
| 20 |
| [`delete`](./sessions-api/delete.md) | Deletes a test session. | |
| 21 |
| [`status`](./sessions-api/status.md) | Reads the status and progress of a session. | |
| 22 |
| [`start`](./sessions-api/control.md#start) | Starts a test session. | |
| 23 |
| [`stop`](./sessions-api/control.md#stop) | Stops a test session. | |
| 24 |
| [`pause`](./sessions-api/control.md#pause) | Pauses a test session. | |
| 25 |
| [`find`](./sessions-api/find.md) | Finds a session token by providing a token fragment. | |
| 26 |
| [`labels`](./sessions-api/labels.md) | Attach labels to sessions for organization purposes. | |
| 27 |
| [`listen events`](./sessions-api/events.md) | Register for sessions specific events. | |
| 28 |
| [`push events`](./sessions-api/events.md) | Push session specific events. | |
| 29 |
|
| 30 |
## Tests API <a name="tests-api"></a> |
| 31 |
|
| 32 |
| Name | Description | |
| 33 |
| --------------------------------------------------------------- | ------------------------------------------------------ | |
| 34 |
| [`read all`](./tests-api/read-all.md) | Reads all tests available. | |
| 35 |
| [`read session`](./tests-api/read-session.md) | Reads all tests that are part of a session. | |
| 36 |
| [`read next`](./tests-api/read-next.md) | Reads the next test to run in a session. | |
| 37 |
| [`read last completed`](./tests-api/read-last-completed.md) | Reads the last completed tests of a session. | |
| 38 |
| [`read malfunctioning`](./tests-api/read-malfunctioning.md) | Reads the list of malfunctioning tests of a session. | |
| 39 |
| [`update malfunctioning`](./tests-api/update-malfunctioning.md) | Updates the list of malfunctioning tests of a session. | |
| 40 |
| [`read available apis`](./tests-api/read-available-apis.md) | Reads all available APIs names and paths. | |
| 41 |
|
| 42 |
## Results API <a name="results-api"></a> |
| 43 |
|
| 44 |
| Name | Description | |
| 45 |
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------------- | |
| 46 |
| [`create`](./results-api/create.md) | Create a new test result for a test in a session. | |
| 47 |
| [`read`](./results-api/read.md) | Read all test results of a session. | |
| 48 |
| [`read compact`](./results-api/read-compact.md) | Read the number of passed, failed, timed out and not run tests of a session. | |
| 49 |
| [`import session`](./results-api/import.md#1-import-session) | Import session results. | |
| 50 |
| [`import api results`](./results-api/import.md#2-import-api-results) | Import results of a specific API into existing session. | |
| 51 |
| [`download`](./results-api/download.md#1-download) | Download all session results to import into other WMATS instance. | |
| 52 |
| [`download api`](./results-api/download.md#2-download-api) | Download all results of an API. | |
| 53 |
| [`download all apis`](./results-api/download.md#3-download-all-apis) | Download all results of all APIs. | |
| 54 |
| [`view report`](./results-api/download.md#4-download-report) | View the WPT report of an API of a session. | |
| 55 |
| [`view multi report`](./results-api/download.md#5-download-multi-report) | View the WPT report of an API of multiple sessions. | |
| 56 |
| [`download overview`](./results-api/download.md#6-download-overview) | Download an overview of results of all APIs of a session. | |
| 57 |
| [`view report`](./results-api/view.md#1-view-report) | Read an url to a hosted version of a WPT report for an API of a session. | |
| 58 |
| [`view multi report`](./results-api/view.md#2-view-multi-report) | Read an url to a hosted version of a WPT report for an API of multiple session. | |
| 59 |
|
| 60 |
## Devices API <a name="devices-api"></a> |
| 61 |
|
| 62 |
| Name | Description | |
| 63 |
| -------------------------------------------------------------------- | -------------------------------------- | |
| 64 |
| [`create`](./devices-api/create.md) | Registers a new device. | |
| 65 |
| [`read device`](./devices-api/read-device.md) | Read information of a specific device. | |
| 66 |
| [`read devices`](./devices-api/read-devices.md) | Read a list of all available devices. | |
| 67 |
| [`register event listener`](./devices-api/register.md) | Register for a device specific event. | |
| 68 |
| [`send event`](./devices-api/send-event.md) | Sends a device specific event. | |
| 69 |
| [`register global event listener`](./devices-api/register-global.md) | Register for a global device event. | |
| 70 |
| [`send global event`](./devices-api/send-global-event.md) | Sends a global device event. | |
| 71 |
|
| 72 |
## General API <a name="general-api"></a> |
| 73 |
|
| 74 |
| Name | Description | |
| 75 |
| ----------------------------------- | ---------------------------------------------------- | |
| 76 |
| [`status`](./general-api/status.md) | Returns information on how the server is configured. | |