Debian Codegraph @

testing/web-platform/tests/tools/wave/docs/rest-api/tests-api/read-available-apis.md

raw
1 # `read available apis` - [Tests API](../README.md#tests-api)
2
3 The `read available apis` method return a list of all web APIs that the DUT
4 can be tested for. It returns the human readable API name, as well as the
5 directory name under which all corresponding tests reside.
6
7 ## HTTP Request
8
9 `GET /api/tests/apis`
10
11 ## Response Payload
12
13 ```json
14 [
15 {
16 "path": "String",
17 "name": "String"
18 },
19 ...
20 ]
21 ```
22
23 ## Example
24
25 **Request:**
26
27 `GET /api/tests/apis`
28
29 **Response:**
30
31 ```json
32 [
33 {
34 "path": "/2dcontext",
35 "name": "2D Context"
36 },
37 {
38 "path": "/media-source",
39 "name": "Media Source"
40 },
41 ...
42 ]
43 ```