Debian Codegraph @

testing/web-platform/tests/tools/wave/docs/rest-api/results-api/read-compact.md

raw
1 # `read compact` - [Results API](../README.md#results-api)
2
3 The `read compact` method of the results API returns the number of passed, failed, timed out and not run tests per API of a session.
4
5 ## HTTP Request
6
7 `GET /api/results/<session_token>/compact`
8
9 ## Response Payload
10
11 ```json
12 {
13 "<api_name>": {
14 "pass": "Integer",
15 "fail": "Integer",
16 "timeout": "Integer",
17 "not_run": "Integer",
18 "total": "Integer",
19 "complete": "Integer"
20 }
21 }
22 ```
23
24 ## Example
25
26 **Request:**
27
28 `GET /api/results/620bbf70-c35e-11e9-bf9c-742c02629054/compact`
29
30 **Response:**
31
32 ```json
33 {
34 "apiOne": {
35 "pass": 311,
36 "fail": 59,
37 "timeout": 23,
38 "not_run": 20,
39 "total": 481,
40 "complete": 413
41 },
42 "apiTwo": {
43 "pass": 548,
44 "fail": 129,
45 "timeout": 53,
46 "not_run": 36,
47 "total": 766,
48 "complete": 766
49 },
50 "apiThree": {
51 "pass": 349,
52 "fail": 45,
53 "timeout": 14,
54 "not_run": 9,
55 "total": 523,
56 "complete": 417
57 }
58 }
59 ```