-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests.http
60 lines (49 loc) · 901 Bytes
/
requests.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
###
# Registration
###
POST http://127.0.0.1:8080/v1/user/register
Content-Type: application/json
{"email": "XXX", "first_name": "", "last_name": ""}
###
# Login
###
POST http://127.0.0.1:8080/v1/user/login
Content-Type: application/json
{"email": "XXX", "password": "123"}
###
# New HTML job
###
POST http://127.0.0.1:8080/v1/app/html
Authorization: XXX
Content-Type: application/json
{
"payload": "<html><body>XXX</body></html>"
}
###
# Balance top-up
###
POST http://127.0.0.1:8080/v1/user/topup
Authorization: XXX
Content-Type: application/json
{
"amount": "10.00"
}
###
# Get balance
###
GET http://127.0.0.1:8080/v1/user/balance
Authorization: XXX
###
# New URL job
###
POST http://127.0.0.1:8080/v1/app/url
Authorization: XXX
Content-Type: application/json
{
"payload": "https://example"
}
###
# Get the result
###
GET http://127.0.0.1:8080/v1/app/result/XXX
Authorization: XXX