generated from yandex-praktikum/go-musthave-diploma-tpl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreq.http
61 lines (49 loc) · 1.17 KB
/
req.http
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
### register user
POST {{run_address}}/api/user/register
Accept-Encoding: gzip, deflate, br
Content-Type: application/json
{
"login": "User_1",
"password": "secret"
}
### login user
POST {{run_address}}/api/user/login
Accept-Encoding: gzip, deflate, br
Content-Type: application/json
{
"login": "User_1",
"password": "secret"
}
### load order
POST {{run_address}}/api/user/orders
Accept-Encoding: gzip, deflate, br
Authorization: {{auth_header}}
Content-Type: text/plain
9278923470
### get uploaded orders
GET {{run_address}}/api/user/orders
Authorization: {{auth_header}}
### get balance
GET http://localhost:8081/api/user/balance
Authorization: {{auth_header}}
### withdraw request #1
POST {{run_address}}/api/user/balance/withdraw
Authorization: {{auth_header}}
Accept-Encoding: gzip, deflate, br
Content-Type: application/json
{
"order": "346436439",
"sum": 1.2345
}
### withdraw request #2
POST {{run_address}}/api/user/balance/withdraw
Authorization: {{auth_header}}
Accept-Encoding: gzip, deflate, br
Content-Type: application/json
{
"order": "12345678903",
"sum": 270
}
### get withdraw orders
GET {{run_address}}/api/user/withdrawals
Authorization: {{auth_header}}