Debian Codegraph @

testing/web-platform/tests/tools/wave/docs/rest-api/tests-api/update-malfunctioning.md

raw
1 # `update malfunctioning` - [Tests API](../README.md#tests-api)
2
3 The `update malfunctioning` method of the tests API sets the list of test files, that are flagged as not working properly in a specific session. It replaces the existing list with the new provided list.
4
5 ## HTTP Request
6
7 `PUT /api/tests/<session_token>/malfunctioning`
8
9 ## Request Payload
10
11 ```json
12 "Array<String>"
13 ```
14
15 ## Example
16
17 **Request:**
18
19 `GET /api/tests/7dafeec0-c351-11e9-84c5-3d1ede2e7d2e/malfunctioning`
20
21 **Response:**
22
23 ```json
24 [
25 "/apiOne/test/one.html",
26 "/apiOne/test/five.html",
27 "/apiThree/test/two.html",
28 "/apiThree/test/twenty.html"
29 ]
30 ```
31
32 **Request:**
33
34 `PUT /api/tests/7dafeec0-c351-11e9-84c5-3d1ede2e7d2e/malfunctioning`
35
36 ```json
37 [
38 "/apiOne/test/three.html",
39 "/apiOne/test/eight.html",
40 "/apiThree/test/one.html"
41 ]
42 ```
43
44 **Request:**
45
46 `GET /api/tests/7dafeec0-c351-11e9-84c5-3d1ede2e7d2e/malfunctioning`
47
48 **Response:**
49
50 ```json
51 [
52 "/apiOne/test/three.html",
53 "/apiOne/test/eight.html",
54 "/apiThree/test/one.html"
55 ]
56 ```