-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshavar.yaml
54 lines (54 loc) · 1.41 KB
/
shavar.yaml
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
swagger: "2.0"
host: shavar.stage.mozaws.net
info:
title: FxA Content Server
description: The content Server of FxA
contact:
name: John Doe
email: [email protected]
license:
name: MPL v2.0
url: https://www.mozilla.org/en-US/MPL/2.0/
version: 0.7.0
x-mozilla-services:
homepage: https://github.com/mozilla-services/shavar
schemes:
- https
paths:
/__version__:
get:
operationId: getVersion
description: Returns the version
produces:
- application/json
responses:
'200':
description: The version is returned
/downloads:
post:
operationId: getDownloads
description: returns a list of Safe Browsing URLs
produces:
- application/json
parameters:
- name: query
in: body
description: Shavar query string
required: false
schema:
type: string
- name: default_interval
in: query
description: define the default refresh interval
required: false
type: integer
- name: client_backoff_delay
in: query
description: define the backoff delay
required: false
type: integer
responses:
'200':
description: List returned
'400':
description: Invalid Input