-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (67 loc) · 2.5 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0, user-scalable=0">
<link href="dev/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="page-header">
<h1>Sweep Server Api Tester</h1>
</div>
<form id="test-api-form">
<fieldset class="form-group">
<legend>Connection Type</legend>
<div class="form-check">
<label class="form-check-label">
<input type="radio" class="form-check-input" name="connectionType" id="connectionType1" value="ws" checked>
WebSockets
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input type="radio" class="form-check-input" name="connectionType" id="connectionType2" value="rest">
RestApi
</label>
</div>
</fieldset>
<div class="form-group">
<label for="operation-select">Select Operation</label>
<select class="form-control" id="operation-select">
<option value="authentication">Authentication</option>
<option value="createPlayer">Create Player</option>
<option value="createGame">Create Game</option>
<option value="initiateGame">Initiate Game</option>
<option value="pauseGame">Pause Game</option>
<option value="exitGame">Exit Game</option>
<option value="updateGame">Update Game</option>
<option value="joinGame">Join Game</option>
<option value="findGame">Find Game</option>
</select>
</div>
<div class="form-group">
<label for="payloadTextarea">Payload</label>
<textarea class="form-control" id="payloadTextarea" rows="10"></textarea>
</div>
<div class="form-group">
<label id="selectedUrl">public/authenticate</label>
</div>
<button type="submit" class="btn btn-primary">Submit Request</button>
</form>
<div id="server-response" style="border: 2px solid green; padding: 3px; min-height: 200px; margin: 10px 0; position: relative;">
<div
id="server-response-label"
style="padding: 5px; background-color: #337ab7; color: white; position: absolute; top: 0; left: 0; ">
Response
</div>
<div id="server-response-text"></div>
</div>
</div>
<script src="/dev/lib/jquery.js"></script>
<script src="/dev/lib/bootstrap/js/bootstrap.js"></script>
<script src="/dev/mapping.js"></script>
<script src="/dev/index.js"></script>
</body>
</html>