-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMATCHMAKINGRestAPI.txt
More file actions
86 lines (72 loc) · 1.85 KB
/
MATCHMAKINGRestAPI.txt
File metadata and controls
86 lines (72 loc) · 1.85 KB
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
MATCHMAKING
PUT PutCreateGame
IN: string UserID
OUT: 200 gameId - string
ERR: 500="InternalServerError"
400= "Parse UserID"
POST JoinGame
IN: int GameID, string UserID
OUT: 200 "OK"
ERR: 500="InternalServerError"
400= "Parse GameID"
400= "Parse UserID"
POST PostChangeColor
IN: string color, string UserID
OUT: 200 "OK"
ERR: 500="InternalServerError"
400= "Parse UserID"
400= "Parse Color"
GET GetLobbyState
IN: int GameID
OUT: 200 "OK" , JSON file
ERR: 500="InternalServerError"
400= "Parse GameID"
POST PostAddAI1
IN: int GameID, string AIPlayerID
OUT: 200 "OK"
ERR: 500="InternalServerError"
400= "Parse GameID"
400= "Parse AIPlayerID"
POST PostAddAI2
IN: int GameID, string AIPlayerID
OUT: 200 "OK"
ERR: 500="InternalServerError"
400= "Parse GameID"
400= "Parse AIPlayerID"
POST PostChangeNumofPlayers
IN: int NumofPlayers, string UserID
OUT: 200 "OK"
ERR: 500="InternalServerError"
400= "Parse UserID"
400= "Parse NumofPlayers"
POST PostChangeTurnInterval
IN: string UserID, double turnInterval
OUT: 200 "OK"
ERR: 500="InternalServerError"
400= "Parse UserID"
400= "Parse turnInterval"
POST PostChangeCycleBehaviour
IN: string UserID, boolean disappear
OUT: 200 "OK"
ERR: 500="InternalServerError"
400= "Parse UserID"
400= "Parse disappear"
POST PostKickPlayer
IN: string PlayerID
OUT: 200 "OK"
ERR: 500="InternalServerError"
400= "Parse PlayerID"
POST PostIAmReady
IN: string UserID
OUT: 200 "OK"
ERR: 500="InternalServerError"
400= "Parse UserID"
POST PostChangeMap
IN: string MapID, string UserID
OUT: 200 "OK"
ERR: 500="InternalServerError"
400= "Parse UserID"
400= "Parse MapID"
GET GetListOfGames
OUT: 200 "OK", JSON file
ERR: 500="InternalServerError"