-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.html
52 lines (46 loc) · 1.78 KB
/
api.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>api usage</title>
<style>
.route {
display: inline-block;
width: 100px;
margin-left: 1.5rem;
color: blue;
}
.endpoint {
display: inline-block;
font-size: 20px;
margin-bottom: 0.5rem;
}
</style>
</head>
<body>
<div>
<h1>Endpoints:</h1>
<ul>
<li><span class="endpoint">/data</span></li>
<ul>
<li>GET <span class="route">/data</span> => get current data (clients and networks)</li>
<li>GET <span class="route">/data/all</span> => get current data (clients and networks)</li>
<li>GET <span class="route">/data/clients</span> => get only clients</li>
<li>GET <span class="route">/data/networks</span> => get only networks</li>
<li>GET <span class="route">/data/read</span> => show the current file in plain text</li>
<br>
<li>POST <span class="route">/data</span> => upload csv file with data</li>
</ul>
<br> <br>
<li><span class="endpoint">/test</span></li>
<ul>
<li>GET <span class="route">/test</span> => get random test data (clients and networks)</li>
<li>GET <span class="route">/test/all</span> => get random test data (clients and networks)</li>
<li>GET <span class="route">/test/clients</span> => get random test clients</li>
<li>GET <span class="route">/test/networks</span> => get random test networks</li>
</ul>
</ul>
</div>
</body>
</html>