-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.scheme
61 lines (44 loc) · 1.96 KB
/
api.scheme
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
| DOMAIN ADDR => https://sertor-rpi.ddns.net/ ( NOT OFFICIAL )
|_> GAME URL'S
|_> / [ GET ] ( Returns Game Info )
UTILITY
==> Returns Game Info
|_> USER PRIVATE URL'S
|_> /register [ POST ] ( Register users )
KEY --- VALUE
==> userNM --- "username to register"
==> userPS --- "password to register" (NOT ENCODED SS)
==> userML --- "mail to register"
==> Returns Dumped Array (completed: bool, reason: list) -- reason only if completed = False
|_> /register/check [ POST ] ( Check registered users )
KEY --- VALUE
==> userNM --- "username to check register"
==> Returns Dumped Array (completed: bool, reason: list) -- reason only if completed = False
|_> /login [ POST ] ( Login with token and password )
KEY --- VALUE
==> userTK --- "user saved token" ( GIVEN ON REGISTER, CAN'T REDEEM IT )
==> userPS --- "user saved password"
==> Returns Dumped Array (completed: bool, reason: list) -- reason only if completed = False
|_> /shop [ POST ] ( User Shop )
KEY --- VALUE
==> userTK --- "user saved token" ( GIVEN ON REGISTER, CAN'T REDEEM IT )
==> abilityNM --- "ability name"
==> Returns Dumped Array (completed: bool, reason: list) -- reason only if completed = False
|_> /menu.<menu>
<menu> = menu name
SPECIAL MENUS
==> .shop [ POST ] --- request.form["userTK"] ( GETS UNIQUE USER SHOP )
MENUS LIST
==> .main
==> .main.mod ( MOD VERSION )
==> Returns Dumped Array (menu: list)
|_> GAME URL'S
|_> /attack [ POST, GET ] ( Attack method )
|_> POST METHOD
KEY --- VALUE
==> userTK --- "user saved token"
==> objectiveID --- "objectiveID"
==> Returns Dumped Array (completed: bool, reason: list) -- reason only if completed = False
|_> GET METHOD
UTILITY
==> Returns Dict with attack users data