-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
178 lines (177 loc) · 6.19 KB
/
swagger.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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
consumes:
- application/json
info:
title: Birdhouse
version: 0.1.0
produces:
- application/json
schemes:
- http
swagger: "2.0"
paths:
/create_wallet_bh:
post:
tags:
- Requests
parameters:
- name: auth_key
in: query
type: string
format: jwt
responses:
200:
description: successful wallet creation
schema:
type: string
example: "ab54ee14-15f1-4ce5-bcc3-6559451354da"
400:
description: failed parsing token
schema:
type: string
example: "can't parse token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHRlcm5hbF9pZCI6IjIyMjIyMjMzMzMzMzMzMzMzMzMzIiwiZmlyc3RfbmFtZSI6Iklnb3IiLCJsYXN0X25hbWUiOiJUYXRhcmlub3YiLCJlbWFpbCI6ImlnLnRhdGFyaW5vdkBnbWFpbC5jb20iLCJwaG9uZSI6IiszNTc5NjIyMjMzMyJ9.C4bu62Mh_EnvMX6nGOpWQcQ0b5oH_6SdeIXHDpPjEzs, err: failed to verify jws signature: failed to verify message: crypto/rsa: verification error"
424:
description: failed dependency
schema:
type: string
403:
description: forbidden
schema:
type: string
/sign_in_wallet_bh:
post:
tags:
- Requests
parameters:
- name: auth_key
in: query
type: string
format: jwt
responses:
200:
description: successful wallet sign in
schema:
type: object
description: json with tokens and their expiration
400:
description: failed parsing token
schema:
type: string
example: "can't parse token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHRlcm5hbF9pZCI6IjIyMjIyMjMzMzMzMzMzMzMzMzMzIiwiZmlyc3RfbmFtZSI6Iklnb3IiLCJsYXN0X25hbWUiOiJUYXRhcmlub3YiLCJlbWFpbCI6ImlnLnRhdGFyaW5vdkBnbWFpbC5jb20iLCJwaG9uZSI6IiszNTc5NjIyMjMzMyJ9.C4bu62Mh_EnvMX6nGOpWQcQ0b5oH_6SdeIXHDpPjEzs, err: failed to verify jws signature: failed to verify message: crypto/rsa: verification error"
424:
description: failed dependency
schema:
type: string
500:
description: internal error, cant parse the response
schema:
type: string
/deposit_wallet_link:
get:
tags:
- Requests
parameters:
- name: auth_key
in: query
type: string
format: jwt
- name: amount
in: query
type: integer
- name: acc_guid
in: query
type: string
description: guid given by api of account, should be same account as encoded in jwt
responses:
200:
description: successful wallet creation
schema:
description: link to the iframe for deposit
type: string
400:
description: failed parsing guid or token
schema:
type: string
example: "can't parse token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHRlcm5hbF9pZCI6IjIyMjIyMjMzMzMzMzMzMzMzMzMzIiwiZmlyc3RfbmFtZSI6Iklnb3IiLCJsYXN0X25hbWUiOiJUYXRhcmlub3YiLCJlbWFpbCI6ImlnLnRhdGFyaW5vdkBnbWFpbC5jb20iLCJwaG9uZSI6IiszNTc5NjIyMjMzMyJ9.C4bu62Mh_EnvMX6nGOpWQcQ0b5oH_6SdeIXHDpPjEzs, err: failed to verify jws signature: failed to verify message: crypto/rsa: verification error"
403:
description: failed to authenticate with given token
schema:
type: string
424:
description: failed to initiate deposit
schema:
type: string
500:
description: internal error, cant parse the response
schema:
type: string
/withdraw_wallet_link:
get:
tags:
- Requests
parameters:
- name: auth_key
in: query
type: string
format: jwt
- name: amount
in: query
type: integer
- name: acc_guid
in: query
type: string
description: guid given by api of account, should be same account as encoded in jwt
responses:
200:
description: link to the iframe for withdraw
schema:
type: string
example: "ab54ee14-15f1-4ce5-bcc3-6559451354da"
400:
description: failed parsing guid or token
schema:
type: string
example: "can't parse token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHRlcm5hbF9pZCI6IjIyMjIyMjMzMzMzMzMzMzMzMzMzIiwiZmlyc3RfbmFtZSI6Iklnb3IiLCJsYXN0X25hbWUiOiJUYXRhcmlub3YiLCJlbWFpbCI6ImlnLnRhdGFyaW5vdkBnbWFpbC5jb20iLCJwaG9uZSI6IiszNTc5NjIyMjMzMyJ9.C4bu62Mh_EnvMX6nGOpWQcQ0b5oH_6SdeIXHDpPjEzs, err: failed to verify jws signature: failed to verify message: crypto/rsa: verification error"
403:
description: failed to authenticate with given token
schema:
type: string
424:
description: failed to initiate withdraw
schema:
type: string
500:
description: internal error, cant parse the response
schema:
type: string
/get_balance:
get:
tags:
- Requests
parameters:
- name: auth_key
in: query
type: string
format: jwt
responses:
200:
description: link to the iframe for withdraw
schema:
type: string
example: "ab54ee14-15f1-4ce5-bcc3-6559451354da"
400:
description: failed parsing guid or token
schema:
type: string
example: "can't parse token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHRlcm5hbF9pZCI6IjIyMjIyMjMzMzMzMzMzMzMzMzMzIiwiZmlyc3RfbmFtZSI6Iklnb3IiLCJsYXN0X25hbWUiOiJUYXRhcmlub3YiLCJlbWFpbCI6ImlnLnRhdGFyaW5vdkBnbWFpbC5jb20iLCJwaG9uZSI6IiszNTc5NjIyMjMzMyJ9.C4bu62Mh_EnvMX6nGOpWQcQ0b5oH_6SdeIXHDpPjEzs, err: failed to verify jws signature: failed to verify message: crypto/rsa: verification error"
403:
description: failed to authenticate with given token
schema:
type: string
424:
description: failed to get balance
schema:
type: string
500:
description: internal error, cant parse the response
schema:
type: string