summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/wave/docs/rest-api/tests-api/read-available-apis.md
blob: d197c2c21a9857cdc4133160c697c5dc091a5940 (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 available apis` - [Tests API](../README.md#tests-api)

The `read available apis` method return a list of all web APIs that the DUT 
can be tested for. It returns the human readable API name, as well as the 
directory name under which all corresponding tests reside.

## HTTP Request

`GET /api/tests/apis`

## Response Payload

```json
[
  {
    "path": "String",
    "name": "String"
  },
  ...
]
```

## Example

**Request:**

`GET /api/tests/apis`

**Response:**

```json
[
  {
    "path": "/2dcontext",
    "name": "2D Context"
  },
  {
    "path": "/media-source",
    "name": "Media Source"
  },
  ...
]
```