forked from msatyan/NodeFullStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
103 lines (81 loc) · 3.9 KB
/
index.html
File metadata and controls
103 lines (81 loc) · 3.9 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags always come first -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="author" content="Sathyanesh Krishnan">
<title>Simple API Test</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="highlight/styles/default.css">
<link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.css">
<script type="text/javascript" src="highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
<!-- jQuery first, then Tether, then Bootstrap JS. -->
<script type="text/javascript" src="lib/jquery/jquery.js"></script>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="js/MyAjaxLib.js"></script>
<div class="container-fluid">
<h1 class="title text-info">Simple API Test</h1>
<div class="row">
<div class="col-sm-12">
<div class="alert alert-success" role="alert" id="MyErrorText">
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-5 col-lg-6">
<h5 class="text-success">Select</h5>
<div class="input-group">
<span class="input-group-btn">
<button class="btn btn-success" type="button" onclick="DemoObj.TrySimpleGet();">Get</button>
</span>
<input type="text" id="MyGetUri" class="form-control" placeholder="Enter the URI for GET" value="/product">
</div>
</br>
<h5 class="text-primary">Insert</h5>
<div class="input-group">
<div class="input-group-btn">
<button type="button" id="Action1" class="btn btn-primary" onclick="DemoObj.TryAnyAction();">
POST
</button>
<button type="button" class="btn btn-secondary dropdown-toggle dropdown-toggle-split"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu MyActionSelectList">
<li><a class="dropdown-item" href="#">POST</a></li>
<!--
<li><a class="dropdown-item" href="#">PUT</a></li>
<li><a class="dropdown-item" href="#">PATCH</a></li>
-->
<li><a class="dropdown-item" href="#">DELETE</a></li>
</div>
</div>
<input type="text" id="MyActionUri" class="form-control" aria-label="Text input with segmented button dropdown"
placeholder="Enter the URI for the selected action" value="/product">
</div>
<div>
<textarea placeholder="Enter your JSON input here..." class="form-control" id="MyInputTextarea"
rows="10">
</textarea>
</div>
</br>
</div>
<div class="col-sm-6 col-md-5 offset-md-2 col-lg-6 offset-lg-0">
<div class="card">
<div class="card-header">
API Result
</div>
<div class="card-block">
<pre><code class="json" id="MyJsonResult"></code></pre>
</div>
</div>
</div>
</div>
</div>
</body>
</html>