-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
78 lines (70 loc) · 2.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Generate Swagger from json</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="script.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wow_hero">
<h1>Swagger <span class="green">Editor</span></h1>
</div>
<div class="params">
<div class="header">
<label for="path">path:</label>
<input type="text" id="path" name="path">
</div>
<div class="header">
<label for="tag">tag:</label>
<input type="text" id="tag" name="tag">
</div>
<div class="header">
<label for="model">model:</label>
<input type="text" id="model" name="model">
</div>
<div class="header">
<label for="type">type:</label>
<!--input type="text" id="type" name="type"-->
<select id="type">
<option value="post">POST</option>
<option value="get">GET</option>
<option value="put">PUT</option>
<option value="delete">DELETE</option>
</select>
</div>
<button onclick="document.getElementById('id01').style.display='block'">Open Modal</button>
<div id="id01" class="modal">
<span onclick="document.getElementById('id01').style.display='none'" class="close" title="Close Modal">×</span>
<form class="modal-content" action="/action_page.php">
<div class="container">
<h1>Configure length & Description</h1>
<div class="text">
<h3></h3>
<textarea title="please enter fieldname,length,description" id="metadata" ></textarea>
</div>
<div class="clearfix">
<button type="button" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn">Cancel</button>
<button type="button" onclick="document.getElementById('id01').style.display='none'" class="deletebtn">Submit</button>
</div>
</div>
</form>
</div>
</div>
<div class="row">
<div class="column">
<h3></h3>
<textarea title="JSON Input" id="json_data" ></textarea>
<input type="button" value="convert" onclick="submit()">
</div>
<div class="column">
<h3></h3>
<textarea title="YAML Output" id="yaml_out" ></textarea>
</div>
</div>
<div class="footer">
<a>© 2020 powerd by GitHub, Inc. </a>
</div>
</body>
</html>