-
Notifications
You must be signed in to change notification settings - Fork 0
/
apitest.php
80 lines (80 loc) · 2.73 KB
/
apitest.php
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
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title>ApiTest</title>
</head>
<body>
<table>
<tr>
<th>Query</th>
<th>Submit</th>
</tr>
<tr>
<form action="api.php?/login" method="post">
<td>/login <input type="text" name="name" value="name" /><input type="password" name="pw" value="pw"></td>
<td><input type="submit" />
</form>
</tr>
<tr>
<form action="api.php?/get/locations" method="post">
<td>/get/locations <input type="text" name="sid" value="sid" /></td><input type="hidden" name="type_id" value="2" />
<td><input type="submit" />
</form>
</tr>
<tr>
<form action="api.php?/get/location" method="post">
<td>/get/location <input type="text" name="sid" value="sid" /></td><input type="hidden" name="id" value="2" />
<td><input type="submit" />
</form>
</tr>
<tr>
<form action="api.php?/get/location_types" method="post">
<td>/get/location_types <input type="text" name="sid" value="sid" /></td>
<td><input type="submit" />
</form>
</tr>
<tr>
<form action="api.php?/get/userlist/1" method="post">
<td>/get/userlist/<location_id(1)> <input type="text" name="sid" value="sid" /></td>
<td><input type="submit" />
</form>
</tr>
<tr>
<form action="api.php?/get/user/1" method="post">
<td>/get/user/<userid(1)> <input type="text" name="sid" value="sid" /></td>
<td><input type="submit" />
</form>
</tr>
<tr>
<form action="api.php?/set/status" method="post">
<td>/set/status<input type="text" name="sid" value="sid" /><input type="hidden" name="status" value="testestest" /></td>
<td><input type="submit" />
</form>
</tr>
<tr>
<form action="api.php?/checkin/1/150/250" method="post">
<td>/checkin/<checkin(1/150/250)> <input type="text" name="sid" value="sid" /></td>
<td><input type="submit" />
</form>
</tr>
<tr>
<form action="api.php?/checkout" method="post">
<td>/checkout <input type="text" name="sid" value="sid" /></td>
<td><input type="submit" />
</form>
</tr>
<tr>
<form action="api.php?/halt" method="post">
<td>/halt <input type="text" name="sid" value="sid" /></td>
<td><input type="submit" />
</form>
</tr>
</table>
</body>
</html>