-
Notifications
You must be signed in to change notification settings - Fork 0
/
helpFileJson.txt
114 lines (114 loc) · 2.76 KB
/
helpFileJson.txt
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
[
{
"Route":"/tradings/any",
"Verb":"DELETE",
"Headers":"token",
"Payload":"",
"Description":"Deletes a posted trading, replace any with tradingID in Route"
},
{
"Route":"/cards",
"Verb":"GET",
"Headers":"token",
"Payload":"",
"Description":"Gets all cards a user owns and status of location (stack or deck)"
},
{
"Route":"/deck",
"Verb":"GET",
"Headers":"token",
"Payload":"",
"Description":"Gets current configured Deck of user"
},
{
"Route":"/help",
"Verb":"GET",
"Headers":"",
"Payload":"",
"Description":"Returns json-listing of possible commands"
},
{
"Route":"/score",
"Verb":"GET",
"Headers":"",
"Payload":"",
"Description":"Returns current scoreboard sorted by highest elo"
},
{
"Route":"/stats",
"Verb":"GET",
"Headers":"token",
"Payload":"",
"Description":"Returns stats of user"
},
{
"Route":"/tradings",
"Verb":"GET",
"Headers":"",
"Payload":"",
"Description":"Returns all all possible trades"
},
{
"Route":"/users/any",
"Verb":"GET",
"Headers":"token",
"Payload":"",
"Description":"Returns profile data, replace any with username.. token and any must match"
},
{
"Route":"/battles",
"Verb":"POST",
"Headers":"token",
"Payload":"",
"Description":"Enque for a battle, wait for opponent to match, match even happens if client decides timeout"
},
{
"Route":"/transactions/packages",
"Verb":"POST",
"Headers":"token",
"Payload":"",
"Description":"Buy a package if user has enough coins"
},
{
"Route":"/sessions",
"Verb":"POST",
"Headers":"",
"Payload":"JsonObj;string:Username,string:Password",
"Description":"If successful returns a valid token to be used as authentication"
},
{
"Route":"/tradings/any",
"Verb":"POST",
"Headers":"token",
"Payload":"cardIDtobeTraded,jsonstring",
"Description":"Try to trade payload card with any, replace any with TradingID"
},
{
"Route":"/tradings",
"Verb":"POST",
"Headers":"token",
"Payload":"JsonObj,string:iD,string:CardToTrade,string:type,int:damage",
"Description":"Post a trade to the tradingslist"
},
{
"Route":"/users",
"Verb":"POST",
"Headers":"",
"Payload":"JsonObj;string:username,string:passwort",
"Description":"Try to register user"
},
{
"Route":"/deck",
"Verb":"PUT",
"Headers":"token",
"Payload":"JsonArr;string:cardID,string:cardID,string:cardID,string:cardID",
"Description":"Overwrite old Deck with new Deck of 4 cards"
},
{
"Route":"/users/any",
"Verb":"PUT",
"Headers":"token",
"Payload":"JsonObj;string:Name,string:Bio,string:Image",
"Description":"Update profile data"
}
]