Debian Codegraph @

testing/web-platform/tests/tools/wave/docs/rest-api/sessions-api/status.md

raw
1 # `status` - [Sessions API](../README.md#sessions-api)
2
3 The `status` method of the results API returns information about a sessions current status and progress.
4
5 ## HTTP Request
6
7 `GET /api/sessions/<session_token>/status`
8
9 ## Response Payload
10
11 ```json
12 {
13 "token": "String",
14 "status": "Enum['pending', 'running', 'paused', 'completed', 'aborted']",
15 "date_started": "String",
16 "date_finished": "String",
17 "expiration_date": "String"
18 }
19 ```
20
21 - **token** contains the token of the session corresponding to this status.
22 - **status** specifies the current status of the session:
23 - **pending**: The session was created, can receive updates, however cannot execute tests.
24 - **running**: The session currently executes tests.
25 - **paused**: The execution of tests in this session is currently paused.
26 - **completed**: All tests files include in this session were executed and have a result.
27 - **aborted**: The session was finished before all tests were executed.
28 - **date_started** contains the time the status changed from `PENDING` to `RUNNING` in ISO 8601.
29 - **date_finished** contains the time the status changed to either `COMPLETED` or `ABORTED` in ISO 8601.
30 - **expiration_date** contains the time at which the sessions will be deleted in ISO 8601.
31
32 ## Example
33
34 **Request:**
35
36 `GET /api/sessions/d9caaae0-c362-11e9-943f-eedb305f22f6/status`
37
38 **Response:**
39
40 ```json
41 {
42 "token": "d9caaae0-c362-11e9-943f-eedb305f22f6",
43 "status": "running",
44 "date_started": "2019-09-04T14:21:19",
45 "date_finished": null,
46 "expiration_date": "2019-09-04T14:26:19"
47 }
48 ```