-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (78 loc) · 3.15 KB
/
index.html
File metadata and controls
80 lines (78 loc) · 3.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="manifest" href="manifest.json">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="white">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="black">
<title>Proinfocus Test APIs</title>
<style>
label { opacity: 0.5 }
textarea { background-color: #f9f9f9 !important }
#result pre {
white-space: pre-line;
word-break: break-word;
}
.green { color: green; font-weight: bold }
.red { color: red; font-weight: bold }
</style>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
</head>
<body>
<div class="container">
<div class="row">
<div class="col my-3">
<h1>Test APIs</h1>
</div>
</div>
<div class="row">
<div class="col-2">
<label class="label mb-2" for="restType">Request Type</label>
<select id="restType" class="form-control">
<option>GET</option>
<option>POST</option>
<option>PUT</option>
<option>DELETE</option>
</select>
</div>
<div class="col">
<label class="label mb-2" for="endPoint">Request URL EndPoint</label>
<input type="text" class="form-control" id="endPoint" />
</div>
<div class="col-1 text-end" style="display: flex; align-items: flex-end">
<button id="sendButton" class="btn btn-primary">Send Request</button>
</div>
</div>
<div class="mt-3 row">
<div class="col-12">
<label class="label mb-2" for="sendHeaders">Request Headers (if applicable)</label>
<textarea id="sendHeaders" spellcheck="false" style="overflow: hidden; font-family: monospace;" class="form-control"></textarea>
</div>
</div>
<div class="mt-3 row">
<div class="col-12">
<label class="label mb-2" for="sendBody">Request Body (JSON format)</label>
<textarea id="sendBody" spellcheck="false" style="overflow: hidden; font-family: monospace;" class="form-control"></textarea>
</div>
</div>
<div class="row mt-3">
<div class="col-12 fw-bold">Response:</div>
<div class="col-12 mt-3">
<div id="result" style="font-family: monospace;">
</div>
</div>
</div>
</div>
<script src="main.js" type="module"></script>
<script>
navigator.serviceWorker && navigator.serviceWorker.register('sw.js')
</script>
</body>
</html>