-
Notifications
You must be signed in to change notification settings - Fork 0
/
sd-api.yaml
83 lines (76 loc) · 1.63 KB
/
sd-api.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
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
swagger: "2.0"
info:
title: ForestVPN Service Discovery API
description: |
ForestVPN defeats content restrictions and censorship to deliver unlimited access to video, music, social media,
and more, from anywhere in the world.
termsOfService: https://www.forestvpn.com/terms/
contact:
name: Digital Services LLC
url: https://www.forestvpn.com/
email: [email protected]
license:
name: MIT
url: https://opensource.org/licenses/MIT
version: "2.0"
externalDocs:
description: Find more info here
url: https://www.forestvpn.com/
host: api.forestvpn.com
basePath: /sd/v2/
schemes:
- https
- http
consumes:
- application/json
produces:
- application/json
securityDefinitions:
WireGuard:
type: apiKey
in: header
name: Authorization
security:
- Bearer: [ ]
paths:
/wg/peers/:
get:
summary: List of device peers should be presented on client
operationId: PeersList
tags:
- wireguard
responses:
200:
description: ok
schema:
$ref: "#/definitions/WireGuardPeers"
default:
description: error
schema:
$ref: "#/definitions/Error"
definitions:
Error:
type: object
properties:
code:
type: string
message:
type: string
WireGuardPeers:
type: array
items:
$ref: "#/definitions/WireGuardPeer"
WireGuardPeer:
type: object
properties:
ips:
type: array
items:
type: string
x-go-name: IPs
pub_key:
type: string
ps_key:
type: string
endpoint:
type: string