-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
107 lines (104 loc) · 3.02 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!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" />
<title>API Testing | Linux Club, VIT Chennai</title>
<script defer src="index.js"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header><h1>API Testing</h1></header>
<main>
<h3>Request</h3>
<div id="request-form">
<ul>
<li>
<label for="name">Method</label>
<select id="method">
<option value="GET">GET</option>
<option value="HEAD">HEAD</option>
<option value="POST">POST</option>
<option value="PUT">PUT</option>
<option value="DELETE">DELETE</option>
<option value="PATCH">PATCH</option>
<option value="CONNECT">CONNECT</option>
<option value="OPTIONS">OPTIONS</option>
</select>
</li>
<li>
<label for="url">URL</label>
<input id="url" /><br />
</li>
</ul>
<button>Send</button>
<h3>Parameters</h3>
<table>
<thead>
<tr>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody id="parameters">
<tr id="1">
<td><input type="text" id="parameter-name" /></td>
<td>
<input type="text" id="parameter-value" /> <span
class="cancel"
>✖</span
>
</td>
</tr>
</tbody>
</table>
<button id="add-parameter">Add parameter</button>
<br />
<h3>Headers</h3>
<table>
<thead>
<tr id="1">
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody id="headers">
<tr id="1">
<td><input type="text" id="header-name" /></td>
<td>
<input type="text" id="header-value" /> <span
class="cancel"
>✖</span
>
</td>
</tr>
</tbody>
</table>
<button id="add-header">Add header</button>
<br />
<br />
</div>
<h3>Response</h3>
<div id="response"></div>
<ul class="response-list">
<li class="response-list">
<label for="status">status</label>
<input name="status" type="text" readonly value="Send a request" />
</li>
<li class="response-list">
<label for="response">response</label>
<textarea id="response" rows="6" style="resize: none" readonly>
Send a request</textarea
>
</li>
</ul>
</main>
<footer>
Made with ❤️ by
<a href="https://lugvitc.github.io" target="_blank" rel="noreferrer"
>LUGVITC</a
>
</footer>
</body>
</html>