summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/wave/docs/rest-api/results-api/config.md
blob: a60485dadc7f14fcfa40cddc5948d364b1cc8a02 (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
# `config` - [Results API](../README.md#results-api)

The `config` method is used to determine what features of the results API are 
enabled. Features that can be enabled or disabled are the 
[`import`](./import.md) method and the generation of reports and therefore 
[`download and view`](./download.md) methods.

## HTTP Request

`GET /api/results/config`

## Response

```json
{
  "import_enabled": "Boolean",
  "reports_enabled": "Boolean"
}
```

## Example

**Request:**

`GET /api/results/config`

**Response:**

```json
{
  "import_enabled": false,
  "reports_enabled": true
}
```