summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/wave/docs/rest-api/tests-api/read-all.md
blob: 8480981b6690b8aa9833303c1129885be7ab7b19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# `read all` - [Tests API](../README.md#tests-api)

The `read all` method of the tests API fetches all tests available to include into a test session.

## HTTP Request

`GET /api/tests`

## Response Payload

```json
{
  "<api_name>": "Array<String>"
}
```

## Example

**Request:**

`GET /api/tests`

**Response:**

```json
{
  "apiOne": [
    "/apiOne/test/one.html",
    "/apiOne/test/two.html",
    "/apiOne/test/three.html"
  ],
  "apiTwo": [
    "/apiTwo/test/one.html",
    "/apiTwo/test/two.html",
    "/apiTWo/test/three.html"
  ],
  "apiThree": [
    "/apiThree/test/one.html",
    "/apiThree/test/two.html",
    "/apiThree/test/three.html"
  ]
}
```