-
Notifications
You must be signed in to change notification settings - Fork 84
/
api.yml
123 lines (119 loc) · 3.24 KB
/
api.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
swagger: "2.0"
info:
version: "1.0.0"
title: "Code Coverage"
consumes:
- application/json
produces:
- application/json
paths:
/v2/latest:
get:
operationId: "code_coverage_backend.api.coverage_latest"
parameters:
- name: repository
in: query
description: Mozilla repository for these reports (default to mozilla-central)
required: false
type: string
responses:
200:
description: Latest coverage builds
tags:
- v2
/v2/path:
get:
operationId: "code_coverage_backend.api.coverage_for_path"
parameters:
- name: changeset
in: query
description: Changeset
required: false
type: string
- name: path
in: query
description: File
required: false
type: string
- name: repository
in: query
description: Mozilla repository for this changeset (default to mozilla-central)
required: false
type: string
- name: suite
in: query
description: Filter the coverage using this test suite
required: false
type: string
- name: platform
in: query
description: Filter the coverage using this platform
required: false
type: string
responses:
200:
description: Code coverage information for a given file or directory at a given changeset
tags:
- v2
/v2/history:
get:
operationId: "code_coverage_backend.api.coverage_history"
parameters:
- name: repository
in: query
description: Mozilla repository for these reports (default to mozilla-central)
required: false
type: string
- name: start
in: query
description: Start timestamp for the history date range (default to a year before end)
required: false
type: string
- name: end
in: query
description: End timestamp for the history date range (default to current timestamp)
required: false
type: string
- name: path
in: query
description: Path of the repository folder to get coverage info on.
required: false
type: string
- name: suite
in: query
description: Filter the coverage using this test suite
required: false
type: string
- name: platform
in: query
description: Filter the coverage using this platform
required: false
type: string
responses:
200:
description: Overall coverage of specified path over a period of time
tags:
- v2
/v2/extensions:
get:
operationId: "code_coverage_backend.api.coverage_supported_extensions"
responses:
200:
description: File extensions supported for code coverage
tags:
- v2
/v2/filters:
get:
operationId: "code_coverage_backend.api.coverage_filters"
parameters:
- name: repository
in: query
description: Mozilla repository for these reports (default to mozilla-central)
required: false
type: string
responses:
200:
description: Available filters on the endpoints
tags:
- v2